How to load custom fields?
-
Hello. I’m using ajax load more plugin for wordpress. First of all THANKS FOR A GREAT PLUGIN!!! So… I created my custom theme repeater and everything works fine except one option. I inserted php tag for custom fields to add some additional text information to post block. It works fine but not works in repeater(after load more). This is a copy of php code that is not working in theme repeater :
<?php echo get_post_meta($post->ID, ‘status’, true); ?>
Hope you guys help me with my problem. THANKS AND WAITING FOR YOUR RESPONSE <3and this is a full copy of my repeater`<li style=”
width: 100% !important;
padding-bottom: 0px !Important;
margin-bottom: 0px !Important;
box-shadow: none !important;
” class=”col12″>
<div style=”box-shadow: none !important;width: 100% !Important;padding-bottom: 0px !important; margin-bottom: 0px !important;” class=”col12″>
<div class=”post-image” >
<a href=”<?php echo get_permalink() ?>”><?php the_post_thumbnail($size, $attr ); ?></a>
</div>
<div class=”postbox”>
<div class=”col15left”><h2 class=”posttitleall” ><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h2></div>
<div class=”status”>
<?php echo get_post_meta($post->ID, ‘status’, true); ?>
</div>
<div class=”col15small” ><?php foreach((get_the_category()) as $cat) {
if (!($cat->cat_ID==’20’)) echo ‘<a href=”‘ . get_bloginfo(‘url’) . ‘/category/’ . $cat->category_nicename . ‘/”>’. $cat->cat_name . ‘</a>’ . ‘ ‘;
} ?></div>
</div>
</div></li>`
- The topic ‘How to load custom fields?’ is closed to new replies.