Skip to content

Instantly share code, notes, and snippets.

<div id="<?php echo esc_attr($id); ?>" class="<?php echo esc_attr($classes); ?>">
<?php
$repeater_field = get_field('tiles');
if ($repeater_field) {
$index = 1;
?>
<div class="tile__container">
<?php
while (have_rows('tiles')) : the_row();
$class_name = 'class-name-' . $index;
/*
Just replace the URL in the fetch_rss line below with the RSS feed to your Twitter favorites. In fact this will work with any RSS feed.
*/
// Just replace the URL in the fetch_rss line below with the RSS feed to your Twitter favorites. In fact this will work with any RSS feed.
<?php
include_once(ABSPATH . WPINC . '/feed.php');
$rss = fetch_feed('http://twitter.com/favorites/793830.rss');
$maxitems = $rss->get_item_quantity(3);
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
<?php the_tags('<p>Tags: ', ', ', '</p>'); ?>
or
<?php wp_tag_cloud('smallest=10&largest=10&format=list&unit=px'); ?>
/*
Theme Name:
Theme URI: http://
Description:
Version: 1.0
Author:
Author URI: http://
Tags:
*/
// FOR USE WITH WP-SNAP PLUGIN
// http://www.nateomedia.com/wares/downloads/wordpress/wp-snap/
<?php if (function_exists('wp_snap')) { echo "<div class='group'>" . wp_snap('cat=8&child=true&firstload=recent') . "</div>"; } ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="profile group">
/* Add to header.php */
<script type="text/javascript" src="<?php bloginfo("template_url"); ?>/js/sidebar_tabs.js"></script>
/* Stored in inc or includes folder as tab-nav.php */
<div id="organic-tabs">
<ul id="tab-nav">
<li id="ex-tab1"><a rel="tab1" href="#" class="current">Featured</a></li>
<li id="ex-tab2"><a rel="tab2" href="#">Categories</a></li>
<?php if ( get_the_tags() ) :?>
<footer class="article-footer">
<p class="tags">
<?php the_tags('<span class="tags-title">' . __('Tags:', 'jointstheme') . '</span> ', ', ', ''); ?>
</p>
</footer> <!-- end article footer -->
<?php else : ?>
<!-- EMPTY -->
<?php endif; ?>
/*
Add to functions.php:
*/
// Defines the length of the_excerpt
function my_excerpt_length($text){
return 30;
}
add_filter('excerpt_length', 'my_excerpt_length');