Support » Plugin: WP Favorite Posts » Custom post type again :-(

  • Hi, I found this section of code in wpfp-page-template.php and I’m trying to get this to work with my CPT ‘Properties’.

    Any suggestion as to how I would modify the code to suit?

    (ps) Can’t this be added as a preference in settings? Ie… Select from a list of post types to be available as favourites?

    $qry = array('post__in' => $favorite_post_ids, 'posts_per_page'=> $post_per_page, 'orderby' => 'post__in', 'paged' => $page);
    // custom post type support can easily be added with a line of code like below.
    // $qry['post_type'] = array('post','page');
    query_posts($qry);

    http://wordpress.org/plugins/wp-favorite-posts/

Viewing 1 replies (of 1 total)
  • $qry = array('post__in' => $favorite_post_ids, 'posts_per_page'=> $post_per_page, 'orderby' => 'post__in', 'paged' => $page);
    // custom post type support can easily be added with a line of code like below.
    $qry['post_type'] = array('properties');
    query_posts($qry);

    Like that?

Viewing 1 replies (of 1 total)
  • The topic ‘Custom post type again :-(’ is closed to new replies.