Tagged: categories, metadata, Portfolio, portfolio categories
-
AuthorPosts
-
January 20, 2022 at 12:34 pm #1336339
Hi:
I’d like to show portfolio categories in single portfolio page, so I’ve inserted a metadata module. But it’s not taking its current categories properly, it adds weird categories that I haven’t created. Please can you have a look? screenshots attachedJanuary 20, 2022 at 5:45 pm #1336420Hey,
Thanks for contacting us!
I wanted to look into it however I was blocked
Acceso restringido desde tu conexión ¿Qué ha podido pasar? Se ha bloqueado por seguridad el acceso desde tu conexión a la url que intentas acceder. Si la web es tuya pulsa aquí para solucionarlo, por favor:
Could you please temporarily disable IP restriction so we can look into it? :)
Best regards,
YigitJanuary 21, 2022 at 2:51 pm #1336549Hi:
Sure, I’ll unlock acceses from the country you are writing from. Can you tell me where you write from?
ThanksJanuary 22, 2022 at 4:58 am #1336602Hi,
Please provide access for the countries in private, then all moderators should be able to access your site.
Best regards,
RikardJanuary 24, 2022 at 12:06 pm #1336882Hi:
Ok, done. Please try nowThanks very much
- This reply was modified 2 years, 9 months ago by inextable.
January 25, 2022 at 8:25 am #1336985Hi,
Thank you for the access.
Looks like it is including the post_translations and language taxonomies in the list. To fix the issue, we modified the config-templatebuilder/avia-shortcodes/post_metadata/post_metadata.php and added this code around line 947.
if( in_array($taxonomy_slug, array("post_translations", "language") ) ) { continue; }
Best regards,
IsmaelJanuary 25, 2022 at 12:55 pm #1337055Hi Ismael:
Thanks very much for you answer.
Cool it works!
So this change you made in file: will you apply it in your next theme update? If not, I will loose data after updating.Thanks again
January 25, 2022 at 2:22 pm #1337075Hi,
Our devs said that this is too specific to implement in the core however we will consider adding a filter.
In the meantime, you can refer to this post – https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb and modify the file on your child theme – https://kriesi.at/documentation/enfold/child-theme/
Best regards,
YigitJanuary 26, 2022 at 3:10 pm #1337311Could you please provide a code snippet? I have the code snippets plugin installed, I can insert your code there, instead of having a child theme which it’s super messy and bad perfomance. Something like this? (but with the good references)
add_filter(‘blablabla’, ‘blablawherever’);
function blablabla()
{
if( in_array($taxonomy_slug, array(“post_translations”, “language”) ) )
{
continue;
}}
January 26, 2022 at 3:47 pm #1337319Hi,
Since there is no filter at the moment, only solution is modifying the file, just as Ismael has modified it for you – https://kriesi.at/support/topic/post-metadata-module-not-taking-portfolio-categories-properly/#post-1336985 :)
Regards,
YigitJanuary 26, 2022 at 4:04 pm #1337320Ok. Please let me know if you add that filter ;)
Thanks very much!Regards
January 26, 2022 at 7:08 pm #1337346 -
AuthorPosts
- You must be logged in to reply to this topic.