Okay
  Public Ticket #2310559
Setting up pages in a grid format on page
Closed

Comments

  •  5
    mikegettier started the conversation

    Hi,


    I'm trying to arrange pages onto a page in a grid format. A picture, followed by a description, and having the box be clickable to be taken to that page. So it looks something like the image attached. What would be the best way to do this? I tried masonry grid, and that was almost what I was looking for. 

    Thank you,

  •  1,559
    Laborator replied

    Hi Mike,

    We recommend using Post Masonry Grid, it has many options which you can modify and create your custom grid.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  5
    mikegettier replied

    Okay, I though so. Thank you.


    I've added the post grid, but it has every page showing up. I see I can decide which pages to add to the grid by using tags? Is that the best way of organizing posts on the grid? How would I assign tags to a specific page?


    Thank you

  •  1,559
    Laborator replied

    Hi Mike,

    That's the best and only way to organize and filter the posts within the grid. I could not understand this question "How would I assign tags to a specific page?"

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  5
    mikegettier replied

    Can't you assign tags to a specific page? I'm trying to organize pages within the masonry grid. And I see you can organize by tags. I've added an attachment of the section I'm referring too about organizing the grid by tags. If by tags isn't the best way, what would be the best way to only show certain pages on the grid, and exclude? I see I can type in the name of a page to exclude, but I don't want to have to go back to the grid every time I make a new page and make sure to type it's title into the "exclude" section.


    Thank you.

  •  1,559
    Laborator replied

    Hi Mike,

    I found in a tutorial that adding this code to functions.php file of your child theme will enable tags in pages:

    // add tag support to pages
    function tags_support_all() {
        register_taxonomy_for_object_type('post_tag', 'page');
    }
    // ensure all tags are included in queries
    function tags_support_query($wp_query) {
        if ($wp_query->get('tag')) $wp_query->set('post_type', 'any');
    }
    // tag hooks
    add_action('init', 'tags_support_all');
    add_action('pre_get_posts', 'tags_support_query');
    

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  5
    mikegettier replied

    Okay, thank you.


    Does that have to placed anywhere specific within functions.php? Can I just place it at the very end, or does it have to be placed some where within the brackets of the code that's already there?


    And then once I do that, how would I actually assign a specific tag to a page?


    I've Google'd it but I got a lot of different and unclear answers.


    Thanks for all your help.

  •  1,559
    Laborator replied

    Hi Mike,

    You can add them at the end of the functions.php file, follow this guide to add it. Then to assign a tag to a page you can do it like for the blog posts, on the right side of the page there are tags that you can simply choose.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  5
    mikegettier replied

    Thank you so much. Got it to work. It was way easier than I thought. I don't know if you can look this up and if I'm allowed to ask this through a ticket, but do you know when my support is up? I'm pretty sure it was 6 months and is ending soon. I'd continue with support if that is an option.


    Thanks Art. You've been a huge help.

  •  1,559
    Laborator replied

    You're welcome Mike, 

    To extend the support license you can do that in the downloads section or in the Kalium item page.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group