Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter saylife

    (@saylife)

    Hello.
    Works!
    The solution was under my nose.
    Thanks for the plugin

    // custom post type support can easily be added with a line of code like below.
             $qry['post_type'] = array('post','page','estate_property');
            query_posts($qry);

    Hi – how did you fix this as I’m having the same problem?

    Thread Starter saylife

    (@saylife)

    1)Read this
    2)Add code in its name “custom post type“.
    In my case it is :’estate_property’

    Hi

    I have replaced

    query_posts(array('post__in' => $favorite_post_ids, 'posts_per_page'=> $post_per_page, 'orderby' => 'post__in', 'paged' => $page));

    with:

    query_posts(array('post__in' => $favorite_post_ids,'post_type' => 'any', 'posts_per_page'=> $post_per_page, 'orderby' => 'post__in', 'paged' => $page));

    I am Can you please help me on understand –
    $qry['post_type'] = array('post','page');

    What should I add for custom post type?
    Is it my theme’s page templete? What should I add there?
    Thanks.

    Thread Starter saylife

    (@saylife)

    See the name of your post type.
    And inserted into the code.
    https://Your website.com/wp-admin/edit.php?post_type=yours custom post type

    // custom post type support can easily be added with a line of code like below.
      $qry['post_type'] = array('post','page','yours custom post type');
            query_posts($qry);

    If this theme’s page template.
    Then it ‘page’.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page doesn't display my favorites’ is closed to new replies.