Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1056083

    Hello, I want to include a portfolio list of related services in one page, butt for SEO I need to exclude one portfolio item, is it possiible?

    Thank you, Carmen

    #1056389

    Hey carmen,

    You may be able to hide it via CSS. Can you please provide a link to the site/pafe in question so we can look into this further.

    Best regards,
    Jordan Shannon

    #1056506

    Hello and thank you,

    For example in this page: https://faceclinic.es/cirugia-maxilofacial/aumento-de-pomulos/
    If you go down, where says “TRATAMIENTOS RELACIONADOS”

    I have use portfolio in order to have a possibility to have related treatments all over the web site, but all portfolio items are redirected to its specific page.

    In this case, i have a portfolio item named https://faceclinic.es/portfolio-item/aumento-de-pomulos/(no index to google), and redirected to this page https://faceclinic.es/cirugia-maxilofacial/aumento-de-pomulos/.

    In this treatment, I have included related treatments “TRATAMIENTOS RELACIONADOS” , but I don´t want “Aumento de pómulos to appear again because it is repeated and bad for SEO).

    Looking for your comments, Carmen

    #1057025

    Hi,

    You should be able to use the “avia_masonry_entries_query” filter to exclude certain entries from the masonry element on a specific page. Example:

    add_filter('avia_masonry_entries_query', 'avia_masonry_entries_query_mod', 10, 2);
    function avia_masonry_entries_query_mod($query, $params) {
        if( is_page(1009871) ) {
           $query['post__not_in'] = array( 6254 );
        }
        return $query;
    }

    The filter above will exclude the item with the id 6254 from the page 1009871 (aumento-de-pomulos).

    Best regards,
    Ismael

    #1057163

    Thank you, but where do i have to insert all that?

    Where is avia_masonry_entries_query” filter? where can I find it?

    Thank you, Carmen

    #1057296

    Hi,

    You can add that code in the child theme’s functions.php file.
    That filter is located in the config-templatebuilder > aviashortcode > av-helper-masonry.php file.

    Best regards,
    Ismael

    #1057614

    Thank you but then, if I want to include “related treatments” in each page of my site, I have to include that code for each page?
    For example if I have 200 pages, i would have to include that code 200 times, each one with the number of the item not included….?

    Regards

    #1057846

    Hi carmentvaalba,

    No, if you modify the helper the filter will appear on all pages.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1057928

    Thank you for your response, but I don´t know what you mean…no idea!
    Carmen

    #1058239

    Hi Carmen,

    Well, I thought you were meaning to modify the masonry helper and so my reply was like that.

    But yes, if you want to add “related posts” to pages built with the Advanced Layout Builder you do need to add them manually to every page.

    Best regards,
    Victoria

    #1058584

    OK Thank you

    #1058617

    Hi,

    You’re welcome. Please open a new thread if you need anything else. We’ll close this one for now.

    Have a nice day.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Exclude one portfolio item on list of portfolio items’ is closed to new replies.