Tagged: category links, post meta data
-
AuthorPosts
-
January 23, 2023 at 4:23 pm #1394797
Dear Kriesis,
when I add costum blog meta data (using the element the Avia builder) to a blog post, the word/link “optional” appears after the category:
e.g. 18. Januar 2023 Festpreisangebote cat, Optional
How to hide/delete this useless “Optional”? And how to hide the comma separator between categories in meta data?
Please see Link to blog post attached.Best regards
AnneJanuary 23, 2023 at 5:59 pm #1394826Hey annevoelkel,
Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardJanuary 23, 2023 at 6:12 pm #1394828This reply has been marked as private.January 24, 2023 at 3:30 am #1394858Hi,
Thank you for the info.
The link “Optional” redirects to a page called “hintergrundartikel”. Did you modify any of the template files or do any translations?
Best regards,
IsmaelJanuary 24, 2023 at 11:24 am #1394898Hello Ismael,
the site is two lingual by WMPL-plugin but I did not modify any templates. It is a very strange behavior of the category item in the builders blog post element but only at this website. I tested it at another website and had no ghost-category “Optional”.
To explain the issue I manually set the post meta an different posts with and without link options (please see links attached). By default link the ghost “Optional”-category redirects to the home page. By setting “no link” it appears in the trail with no link. And “Optional” seems to appear at random position the trail.
Any idea how to kill the ghost?Best regards
AnneJanuary 27, 2023 at 3:17 pm #1395599Hi Anne,
Thanks for the information!
Can we temporarily switch to Enfold parent theme for testing purposes? I would like to see if the issue is related to the modifications to your child theme.
Best regards,
YigitJanuary 27, 2023 at 4:53 pm #1395613Hi Yigit,
it’s the WPML-plugin what causes the issue.
I activated the parent Enfold theme and the ghost category “Optional” still remained. After switching back to the child theme and the WPML-plugin was deactivated the ghost category disappeared.
But I need WPML. Any Idea? I think I should contact the plugin support.
Best regards
Anne- This reply was modified 1 year, 10 months ago by Yigit.
January 27, 2023 at 5:00 pm #1395614Hi Yigit,
the WPML-plugin causes the issue.
I switched temporarily to the parent Enfold and the ghost category “Optional” remained. It disappeared after deactivating the plugin. Do you have any idea to solve the problem?
WPML is essential for the website.Best regards
Anne- This reply was modified 1 year, 10 months ago by Yigit.
January 27, 2023 at 5:02 pm #1395615Where is my content? I wrote much more than the content above.
January 27, 2023 at 5:14 pm #1395619Hey Anne,
There is an issue on our forum when there is multiple “WPML” text in the same line. I edited your posts and added line breaks to avoid the issue.
But I need WPML. Any Idea? I think I should contact the plugin support.
Yes, please get in touch with the WPML support team as well. I am not sure if this is a theme-specific issue or not but they can check the issue and our devs can get in touch if it is so :)
Regards,
YigitJanuary 27, 2023 at 5:17 pm #1395620OK, I will do that and inform you about the results from WPML support.
Best regards
AnneJanuary 27, 2023 at 8:04 pm #1395657Hi,
Thanks for the update, we’ll keep this thread open for you.
Best regards,
RikardJanuary 30, 2023 at 11:44 am #1395880Hello Ricard and Yigit,
This is the reply of WPML’s support:
“I’m not familiar with Enfold builder but I had a similar situation with a plugin that creates blog post cards. “Optional” comes from the WPML taxonomy “Translation priority”. Your plugin/ builder probably takes all taxonomies related to the post not only the WP standard “taxonomy=category”.
Do you have any settings for that builder? Can you include/exclude some taxonomies from that breadcrumbs?”My answer:
“It is not possible to include or exclude taxonomies from that breadcrumb trail by default in the builder but I hope to get a solution by Enfold’s developers. I’ll send them your answer and please find the debug infos attached.”Attached please find a shot of the WPML-plugin page “Taxononmie-Übersetzung > Übersetzungsprioritäten (taxonomy translation > Translation priority)”
I’m looking forward to your ideas to solve the issue.
Best regards
AnneFebruary 1, 2023 at 11:02 am #1396187Hello Rikard and Yigit, wpml-support has access will take a closer look at the website.
Best regards
AnneFebruary 1, 2023 at 12:56 pm #1396207Hi Anne,
Thanks for the update!
Enfold has a “avf_exclude_taxonomies” filter that can be used to exclude “translation_priority” taxonomy. I could not reproduce the issue on my WPML site and have not tested it on your installation yet but if you would like us to look into that, please post FTP logins here privately as well.
Best regards,
YigitFebruary 1, 2023 at 6:45 pm #1396263Hi Yigit, WPML-Support provided this solution:
“Thanks for providing me access. I had a quick look at your theme’s code:
As a quick/temporary fix while waiting for Enfold support, please go to “shortcodes/post_metadata.php” line 957 and add ‘translation_priority’ as an excluded taxonomy.
Replace:
1$excluded_taxonomies = apply_filters( ‘avf_post_metadata_excluded_taxonomies’, array( ‘post_tag’, ‘post_format’ ), $taxonomies );
By:
1$excluded_taxonomies = apply_filters( ‘avf_post_metadata_excluded_taxonomies’, array( ‘post_tag’, ‘post_format’, ‘translation_priority’ ), $taxonomies );
I did so in my Childtheme (folder shortcodes/post_metadata.php) and it works. Is this what you also would recommend?
Best regards
AnneFebruary 2, 2023 at 9:12 am #1396346Hi,
You can also use the avf_post_metadata_excluded_taxonomies filter in the functions.php file instead of editing the post_metadata.php template directly.
add_filter("avf_post_metadata_excluded_taxonomies", function($excluded, $taxonomies) { $excluded[] = "translation_priority"; return $excluded; }, 10, 2);
Best regards,
IsmaelFebruary 2, 2023 at 1:10 pm #1396379Hi Ismael,
this works very well! Thank you very much and you can close the topic.
Best regards
AnneFebruary 2, 2023 at 1:20 pm #1396381 -
AuthorPosts
- The topic ‘hide “optional” in post meta data category links’ is closed to new replies.