Custom post template for particular category [closed]

show all post in their parent category may be work? <?php $currentCatId = get_query_var(‘cat’); $currentCatParent = get_term_by(‘id’, $currentCatId ,’category’); $currentCatParentId = $currentCatParent->parent; $my_query = new WP_Query( ‘cat=”.$currentCatParentId ); print_r($my_query); if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); // Do your stuff endwhile; endif; ?>

Getting the “more” tag to work with plugin-list-category-post

Well… if you are asking if you can get the List category posts plugin to recognize the tag then you can use the “get_extended()” function in WordPress. Create a new List category template and then use the following code to get the part of the post before the more tag for display. $moreTag = get_extended($single->post_content); … Read more

Align thumbnail

If you are referring to the List Category Posts plugin, it uses WordPress’ native function to get the thumbnail get_the_post_thumbnail which produces: class=”attachment-thumbnail wp-post-image” You should assign style to those classes. More info about that here. I’ll be adding the thumbnail CSS class as a parameter since get_the_post_thumbnails has that as an optional parameter, so … Read more