Support » Plugin: Matt's PeepSo Blog Posts » custom posts types

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matt Jaworski

    (@jaworskimatt)

    Hi,

    you can modify the PeepSoBlogPosts::ajax_user_posts() method:

    1. add ‘post_type’=>’listings’ to the $args array.

    2. probably you’d have to provide the fist optional argument for the wp_count_posts() call in order to properly count the posts, most likely wp_count_posts(‘listings’)

    This will make the list display ONLY this single post type.

    Best,
    Matt

    Thanks for the help, but i have no idea where to find the files to modify, could you please be more specific as i’m not a coder…..

    Regards

    I’m using the Directorypress theme btw….

    Nevermind i got it sorted…. Just one thing, is there a way to have the post display in the activity stream? atm it just says “username wrote a new post”. Would be great to have the post appear also….

    Regards

    Plugin Author Matt Jaworski

    (@jaworskimatt)

    The posts are linked into the activity stream and should look like on the screenshots – a little embedded box. If it doesn’t happen there is a number of things that can cause that and I would have to look at your website myself.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘custom posts types’ is closed to new replies.