Skip to content

Instantly share code, notes, and snippets.

@titokun
Last active August 29, 2015 13:57
Show Gist options
  • Save titokun/9870770 to your computer and use it in GitHub Desktop.
Save titokun/9870770 to your computer and use it in GitHub Desktop.
buat template sppnya. gini kalo teks
{% api %}
{% for index, item in api%}
{% if index < 5 %}
Bla bla ..
{% endif %}
{% endfor %}
--------------------------------------------------------------------
kalo gambar
{% image %}
{% for index, item in images%}
{% if index < 5 %}
Bla bla ..
{% endif %}
{% endfor %}
------------------------------------------------------------
kalau jadi satu gimana ya ?
saya coba dengan ini tidak bisa
-----------------------------------------------------------------------------
{% api %}{% image %}
{% for index, item in api%}
{% for index, item in images %}
{% if index < 5 %}
<div class="entry clearfix">
<a href="{{ item.link }}" rel="nofollow" title="{{ item.title }}"><img src="{{ item.mediaurl }}" alt="{{ item.title }}"></a>
<h2 class="post-title"><a rel="nofollow" href="{{ item.link }}" title="{{ item.title }}">{{ item.title }}</a></h2>
{{ item.description }}...
<p class="readmore"><a class="more-link" href="{{ item.title | build_permalink_for 1 }}" rel="nofollow" title="{{ item.title }}">Read More</a></p>
<div style="clear:both;"></div>
</div>
{% endif %}
{% endfor %}
@titokun
Copy link
Author

titokun commented Apr 2, 2014

Warning: explode() [function.explode]: Empty delimiter in /home/xxxxx/public_html/wp-content/plugins/StupidPie1.7/includes/permalink.php on line 62

Warning: explode() [function.explode]: Empty delimiter in /home/xxxxx/public_html/wp-content/plugins/StupidPie1.7/includes/permalink.php on line 62

Warning: explode() [function.explode]: Empty delimiter in /home/xxxxx/public_html/wp-content/plugins/StupidPie1.7/includes/permalink.php on line 62

Warning: explode() [function.explode]: Empty delimiter in /home/xxxxx/public_html/wp-content/plugins/StupidPie1.7/includes/permalink.php on line 62

Warning: explode() [function.explode]: Empty delimiter in /home/xxxxx/public_html/wp-content/plugins/StupidPie1.7/includes/permalink.php on line 62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment