WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Page
[resolved] 2 more categories in 1 page,and (9 posts)

  1. ifeng
    Member
    Posted 1 year ago #

    I use [ic_add_posts category='category-slug'] to pull my post into the page.when there is 1 category per page,it works well.
    when I try to put 2 categories in 1 page,short code like below

    [ic_add_posts category='Tibetan buddhism festival,Tibet news']

    Tibetan buddhism festival and Tibet news are my two categories.
    and all my posts appear in this page.

    Did I miss something ?

    http://wordpress.org/extend/plugins/posts-in-page/

  2. ifeng
    Member
    Posted 1 year ago #

    problem solved,this is a GREAT plugin!

  3. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Thanks ifeng. :)

    Glad you solved your issue. :)

    Since you didn't mention the solution, I will here, in case it helps someone else:

    There's a problem with the shortcode you originally posted:

    [ic_add_posts category='Tibetan buddhism festival,Tibet news']

    When you're pulling in categories, you need to use the slug for the category, rather than the category title.

    The easiest way to find the slug for a normal post is to visit your WordPress Dashboard and click on Posts/Categories, which will list all of your categories with their:

    • Title
    • Description
    • Slug
    • Number of associated posts

    So, I'm guessing that the shortcode that worked for you looked something like:

    [ic_add_posts category='tibetan-buddhism-festival, tibet-news']

    Hope this helps someone. :)

    Eric

  4. ifeng
    Member
    Posted 1 year ago #

    Thank you ,Eric!
    Actually ,I still don't know what's going on although the problem was solved.
    I tried to use the shortcode [ic_add_posts category='tibetan-buddhism-festival, tibet-news'] but it's failed.
    and I tried to add posts by using tags,and a BIG error happened.
    Hopeless!I changeed back to [ic_add_posts category='Tibetan buddhism festival,Tibet news'],and it works!
    I guess it was a system error.

  5. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Quite welcome, ifeng. :)

    I'd be interested to know if it works when you use the shortcode with the category (or tag) slugs without any space between the comma and the next slug, like so:

    [ic_add_posts category='tibetan-buddhism-festival,tibet-news']

    That should work. I have a sneaking suspicion that it's the spaces and I apologize because I should know better; we even call attention to that in the instructions:

    [ic_add_posts category='category-slug'] - Show posts within a specific category. Uses slugs, can have multiple but separate by commas. category-1,category2, etc (no spaces.)

    [ic_add_posts tag='tag-slug'] - Show posts using a specific tag. Like categories, it uses slugs, and can accommodate multiple tags separate by commas. tag-1,tag-2, etc (no spaces.)

  6. chakra_wp
    Member
    Posted 1 year ago #

    Hi Eric ,

    Am using [ic_add_posts category='expert-talk'] to pull the posts in to my page & it works well but i wish to display thumbnail as well. Can you please help me on this.

  7. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Hi chakra_wp,

    In the future, do me a favor and post a new support topic for a new question. :)

    but i wish to display thumbnail as well. Can you please help me on this.

    See this post:

    http://wordpress.org/support/topic/how-to-add-featured-image?replies=5

  8. chakra_wp
    Member
    Posted 1 year ago #

    Thank you very much Eric ! ...

  9. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    You're quite welcome. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.