WordPress.org

Ready to get started?Download WordPress

Forums

WP Tiles
[resolved] Custom Post Type (13 posts)

  1. brooklyncreativedesign
    Member
    Posted 1 year ago #

    Can we use this plugin to display a custom post type? If so, where can we edit the .php file to adjust the query to call it, or can we adjust that via the shortcode?

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

  2. Mike
    Member
    Plugin Author

    Posted 1 year ago #

    Showing a custom post type can be done through the settings screen (the very last setting!) or in the shortcode directly:

    [wp-tiles posts_query='post_type=my_custom_post_type']

  3. tampaupcycle
    Member
    Posted 1 year ago #

    Can we also use custom post type categories? I am trying to get this plugin to work with custom post types created by a theme and I would like to be able to use the filter by category function.

  4. mbenari
    Member
    Posted 1 year ago #

    How can we display multiple custom post types? Comma separated post types did not work:

    [wp-tiles posts_query='post_type=post,post_2']

  5. Mike
    Member
    Plugin Author

    Posted 1 year ago #

    This should work when you pass the post types like this:
    [wp-tiles posts_query='post_type[]=post&post_type[]=post_2']

    See also http://www.peterrknight.com/how-to-query-multiple-custom-post-types-with-query_posts-wordpress-tip/

  6. mbenari
    Member
    Posted 1 year ago #

    Hi Mike, that did not work in the shortcode. It ended up with part of the shortcode text below the tiles like this: http://cl.ly/Q27F

    Can you suggest another method?

  7. Mike
    Member
    Plugin Author

    Posted 1 year ago #

    It looks like you're using curly quotes ( ‘ and ’ ) in the screenshot. Can you try it with straight ones? ('').

    It takes the first ] to be the end of the shortcode.. using straight quotes should prevent this.

  8. mbenari
    Member
    Posted 1 year ago #

    They are not curly it is just the way it displays it on the front end I think. I am using this code:
    [wp-tiles posts_query='post_type[]=post&post_type[]=stories']

    See: http://myheadhurts.co/test-6/

  9. Mike
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Maya, sorry for the slow reply, I knew this way going to take some fiddling.

    You're absolutely right.. there's no way in which it can work with square brackets! So, the solution is there 0.5.2 (coming in a minute), but it ain't pretty: replace [] by {} and you'll be set.

    Let me know how it works out!

  10. mbenari
    Member
    Posted 1 year ago #

    Fantastic! It is working great. As long as it works, it's pretty to me ;)

    Thanks!
    Maya

  11. metis-counsel
    Member
    Posted 10 months ago #

    Hi Maya,

    I'm helping a client of mine with a new design for her blog using WP Tiles. Is there any way you could provide some guidance on how to program the hover effect? When you hover over a tile, the tile changes color and a title appears. I would greatly appreciate some direction on this and code snippets if it's a simple modification. Thanks so much!!!

    Mike

  12. mbenari
    Member
    Posted 10 months ago #

    Hi there,
    I don't think showing titles had anything to do with my post. The plugin does that automatically in the settings.

  13. metis-counsel
    Member
    Posted 10 months ago #

    Thanks for getting back to me! To clarify on the hover effect, please take a look at: http://www.athousandguitars.com. The titles do not appear until you position your cursor over an image. Did you design this site? I've been trying to find the code for this effect. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.