This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php bloginfo('template_url'); ?> | |
// example | |
<img src="<?php bloginfo('template_url'); ?>/img/image-name.jpg" alt="feature-technology" width="" height="" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: | |
Theme URI: http:// | |
Description: | |
Version: 1.0 | |
Author: | |
Author URI: http:// | |
Tags: | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Add to functions.php: | |
*/ | |
// Defines the length of the_excerpt | |
function my_excerpt_length($text){ | |
return 30; | |
} | |
add_filter('excerpt_length', 'my_excerpt_length'); |
NewerOlder