Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #884190

    I have setup 12 product pages using the Page functionality of WordPress (in order to have good hierarchy and good website structure), and i am looking for a way to display in the footer of each product’s page the “Other Products” pages.
    Any solutions?

    • This topic was modified 6 years, 11 months ago by KyriK.
    #884316

    Hey KyriK,

    I’m not sure if it’s what you are looking for but maybe you could create a custom menu and then add it as a widget in the footer?

    Best regards,
    Rikard

    #884319

    in fact i dont want it as text links in the footer area. Maybe i didnt explain it well.
    I want a way to present some page thumbs like the blog posts element. Is it possible to select specific pages instead of posts?

    #885394

    Hi,

    This is possible with the portfolio grid element but it will return every page in the site. Add the following code in the functions.php file to enable the post type selection in the portfolio grid element.

    
    add_theme_support('add_avia_builder_post_type_option');
    add_theme_support('avia_template_builder_custom_post_type_grid');
    

    Best regards,
    Ismael

    #890015

    Ismael i have enabled it. I have selected Pages as my post type, but then, i shall select one of the following:
    Category, post tag, Post format, Portfolio Entries.

    I am not able to write down the pages ids in order to select them :/
    Any ideas?

    #890317

    Hi,

    I am not able to write down the pages ids in order to select them :/

    I’m sorry but that’s not possible at the moment. Please hire a freelance developer or contact our partner, Codeable.

    // https://kriesi.at/contact/customization

    However, there is a workaround but it requires you to adjust the portfolio grid query in the functions.php file manually. Example:

    add_filter( 'avia_post_grid_query', 'avf_custom_post_grid_query', 10, 2);
    function avf_custom_post_grid_query( $query, $params ) {
    	$query['post__in'] = array(PUT THE IDs OF THE PAGES HERE); // example: array(23, 43, 11, 10);
    	return $query;
    }

    The portfolio grid will only fetch the specified pages.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.