WordPress.org

Ready to get started?Download WordPress

Forums

WP Tiles
[resolved] Pages and Post Category (5 posts)

  1. Debayne
    Member
    Posted 8 months ago #

    Hi,

    I am just wondering if there is anyway to display Post Categories as well as Pages within one tile section?

    Thanks in advance

    http://wordpress.org/plugins/wp-tiles/

  2. Mike
    Member
    Plugin Author

    Posted 7 months ago #

    Hi there, this is a very delayed response! Sorry for that. Hopefully this is still any use.

    If you want to display links to category pages, then unfortunately there is no easy way to achieve this. The only thing you can do is filter the wp tiles data and manually insert tiles for category archives. For inspiration, see this gist.

    If you just want to display poth pages and posts from certain categories, you can query for multiple post types by setting 'post_type' to 'any' in the posts_query.

    Let me know if you need any further help!

    Mike

  3. fabpho.ch
    Member
    Posted 7 months ago #

    Hi Mike

    Does this mean that I cannot display posts of a selected category (in this example "tutorials") by modifying the shortcode as written below?

    [wp-tiles posts_query='numberposts=10&category=tutorials&post_type=post']

    Unfortunatels, the shortcode doesn't do the trick. What did I do wrong?

  4. Mike
    Member
    Plugin Author

    Posted 7 months ago #

    Hi!

    You can use the shortcode to display tiles from a certain category, but you have to use the category ID instead of name. See this thread for info on how to do it.

    Cheers,
    Mike

    Ps. if you have more questions, please start a new topic in the forum! Thanks.

  5. fabpho.ch
    Member
    Posted 7 months ago #

    Hi Mike

    Thanks for your quick reply. I replaced the category name with it's ID and now it works perfectly. Nice :-)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.