• I have inserted a post loop at the bottom of the page.
    It keeps displaying all my posts, but I want it to just show posts from the ‘mobile-development’ category.

    At the bottom of the Edit post widget (PB) screen it says:
    You can add ‘Additional query arguments’.
    I have tried adding the query:

    query_posts(array(‘category_name’ => ‘mobile-development’));

    But it makes no difference.
    Anybody now how to sort this?

    Here is my page:

    https://stuartjones.me/app-development/

Viewing 1 replies (of 1 total)
  • Plugin Support Andrew Misplon

    (@misplon)

    Hi smj93

    The Additional field can be populated by an argument as follows:

    cat=x

    or

    cat=x,y,z

    Where x, y and z are category ID’s. You can get a category’s ID by going to Posts > Categories, clicking on the category you want to filter and checking the url. There will be a single number in the url, that’s the ID.

Viewing 1 replies (of 1 total)
  • The topic ‘Display a specific category in a postloop’ is closed to new replies.