• Resolved fusillicode

    (@fusillicode)


    Hi community.

    The problem today is the following:

    if I specify a custom grid layout inside a shortcode in which I also use the posts_query directive, the grid layout doesn’t seem to get considered.

    Here’s the shortcode:

    [wp-tiles posts_query="post_type=my_custom_post_type&tax_query{0}{taxonomy}=custom_cat&tax_query{0}{field}=slug&tax_query{0}{terms}=my_custom_category&orderby=menu_order&order=DESC&post_status=publish"
    grid="AAABBBBCCC|AAABBBBCCC|AAABBBBCCC|DDDBBBBEEE|DDDBBBBEEE|DDDBBBBEEE" small_screen_grid="AAABBBBCCC|AAABBBBCCC|AAABBBBCCC|DDDBBBBEEE|DDDBBBBEEE|DDDBBBBEEE" padding="0" link="none"]

    As always if I misunderstood the functionality of one of the directives mentioned above please forgive me 🙂

    Cheers!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter fusillicode

    (@fusillicode)

    Ok also this time the problem seems to be related to my lack of attention in reading the doc of this (great!) plugin.

    Here it is explained the drop of the posts_query directive.

    To reach the same results of this directive the syntax described here should be used. Search in the page for “taxonomy, tax_term, and tax_operator” and you’ll find all the information you’ll need. 🙂

    Now, my new (correct) shortcode form is:

    [wp-tiles grid="AAABBBBCCC|AAABBBBCCC|AAABBBBCCC|DDDBBBBEEE|DDDBBBBEEE|DDDBBBBEEE"
    small_screen_grid="AAABBBBCCC|AAABBBBCCC|AAABBBBCCC|DDDBBBBEEE|DDDBBBBEEE|DDDBBBBEEE" padding="0" link="none" post_type="tile" taxonomy="custom_cat" field="slug" tax_term="home" orderby="menu_order" order="DESC" post_status="publish"]

    I hope it is clear enough the problem and the solution. 🙂

    Cheers!

    @mike: sorry for this unneeded thread, as said I wasn’t careful enough in reading the doc 🙁

    Plugin Author Mike Martel

    (@mike_cowobo)

    @fusillicode No harm done, happy you figured it out 🙂

    This is because the syntax changed a lot going to v1.0 (for the better, I think!). So now there are 2 sets of documentation. Hopefully things will be clearer when 1.0 is out of beta!

    Mike

    Thread Starter fusillicode

    (@fusillicode)

    Just for the record I totally agree with the clearness of the new syntax 😉

    Thanks again for the support and even more for the patience.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[1.0 BETA] custom grids not considered in shortcode’ is closed to new replies.