help with category display of blog post
-
Hi, Im trying to figure out how to modify this statement to say if custom field is a specific value then display the blog post.
<?php } endif; if ( ! function_exists( 'boutique_display_blogpost' ) ) : function boutique_display_blogpost(){ global $post; $thumb = ''; $width = 173; $height = 156; $classtext = 'blog-thumb'; $titletext = get_the_title(); $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Blog'); $thumb = $thumbnail["thumb"]; if ( is_category() ){ ?>
But dont know if it goes up in the function of where if is category?
Full code pastebin
What im trying to achieve is different contents in each blog displayed in the category based upon the value of the custom field.
But i want to check for a specific value in the custom field, to display the correct results in the category.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘help with category display of blog post’ is closed to new replies.