-
AuthorPosts
-
January 20, 2019 at 9:43 am #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
January 21, 2019 at 3:09 am #1056389Hey 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 ShannonJanuary 21, 2019 at 10:13 am #1056506Hello 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
January 22, 2019 at 5:34 am #1057025Hi,
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,
IsmaelJanuary 22, 2019 at 12:30 pm #1057163Thank 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
January 22, 2019 at 4:40 pm #1057296Hi,
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,
IsmaelJanuary 23, 2019 at 8:20 am #1057614Thank 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
January 23, 2019 at 6:02 pm #1057846Hi 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,
VictoriaJanuary 23, 2019 at 8:42 pm #1057928Thank you for your response, but I don´t know what you mean…no idea!
CarmenJanuary 24, 2019 at 5:36 pm #1058239Hi 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,
VictoriaJanuary 25, 2019 at 10:05 am #1058584OK Thank you
January 25, 2019 at 11:31 am #1058617 -
AuthorPosts
- The topic ‘Exclude one portfolio item on list of portfolio items’ is closed to new replies.