WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts by Category
How to check exists relate post? (1 post)

  1. drmen8x
    Member
    Posted 1 year ago #

    by default of your code:

    <h3 class="item_view_heading">The same products</h3>
                        <ul class="jcarlist2 jcarousel-skin-tango">
    			<?php do_action(
                                'related_posts_by_category',
                                array(
                                    'orderby' => '',
                                    'order' => 'DESC',
                                    'limit' => 40,
                                    'echo' => true,
                                    'before' => '<li>',
                                    'inside' => '',
                                    'outside' => '',
                                    'after' => '</li>',
                                    'rel' => 'follow',
                                    'type' => 'post',
                                    'image' => 'thumbnail',
                                    'message' => 'No matches'
                                  )
                                ) ?>
                            </ul>

    but in my template i want to check like this:

    if(have_relate_post){
      do_action(
                                'related_posts_by_category',
                                array(...)
               )
    }

    Please tell me how to do it?

    Thank you

    http://wordpress.org/extend/plugins/related-posts-by-category/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.