Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Mike Martel

    (@mike_cowobo)

    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']

    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.

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

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

    Plugin Author Mike Martel

    (@mike_cowobo)

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

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

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

    Can you suggest another method?

    Plugin Author Mike Martel

    (@mike_cowobo)

    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.

    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: https://myheadhurts.co/test-6/

    Plugin Author Mike Martel

    (@mike_cowobo)

    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!

    Fantastic! It is working great. As long as it works, it’s pretty to me ??

    Thanks!
    Maya

    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

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

    Thanks for getting back to me! To clarify on the hover effect, please take a look at: https://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!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Custom Post Type’ is closed to new replies.