• 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/

  • The topic ‘How to check exists relate post?’ is closed to new replies.