I am trying to:
You previously helped me set up conditional displays of custom social link fields IF they had a value in this post:
https://toolset.com/forums/topic/social-links-conditional-in-loop-on-profile-page/
In updating this view, the conditional has stopped working properly and now shows all icons regardless of whether they have a link value in the field or not, only for those that have blog posts. For those without posts, the social icon fields are showing up blank even if they have social link values.
Link to a page where the issue can be seen:
Click on these users: lien caché
For example, this user lien caché has posts and it is then showing that she has all social links even though she does not.
In contrast, this user lien caché has 2 social links but none are showing up as they have no blog posts.
This was all working fine and nothing changed in the shortcode since it was last working properly, but other elements on the page were updated and the page was saved which seems to have broken the code.
Login credential are posted. Please fix as I need to launch this site today!!
Thank you!!
Hi,
Thank you for contacting us and I'd be happy to assist.
While I can see the issue on your website, I couldn't reproduce this on my test website, with similar fields, custom shortcodes, and conditional code blocks. This suggests that something specific to your website is involved.
Have you added any new custom code or plugins, recently?
Can you please share a clone/snapshot of the website, so that it can be investigated on a different server, without affecting the actual website?
( ref: https://toolset.com/faq/provide-supporters-copy-site/ )
We usually recommend the plugin “Duplicator” (http://wordpress.org/plugins/duplicator/) for this, but some hosts like WP Engine are known to block it.
In that case, you can create a backup file using the "All-in-One WP Migration" plugin:
https://wordpress.org/plugins/all-in-one-wp-migration/
Note: I've set your next reply as private.
regards,
Waqar
The previously sent credentials are ok to use and the link is a copy of this website on a different server so please go ahead and troubleshoot. I need this to work ASAP as we are supposed to go live today. There are no recently installed plugins since this was last working! Thank you!
Thank you for waiting.
I've performed a number of tests on your website and my test website, but couldn't narrow down why the same code is working on my test website, but not on yours.
Can you please perform a quick test by removing the code for the custom shortcodes "archive-author-id" and "get_author_in_archive_value_check" from Toolset's custom code section and then add it in the active theme's "functions.php" file?
In case the issue still persists, I'll need your permission to download a clone/snapshot from the website and debug this on a different server, in more depth.
Hi Waqar,
I found the issue. The plugin when the plugin FacetWP is enabled, the shortcodes above stop working correctly and cause the described symptoms. So I will not be using that plugin for now but perhaps you can troubleshoot the issue related to that plugin and why it breaks your code? lien caché
Thanks
JS
Thanks for the update and glad that it has been narrowed down.
To investigate this compatibility issue, I'll need a clone/snapshot of a website where the FacetWP plugin is activated and the issue can be reproduced.
( https://toolset.com/faq/provide-supporters-copy-site/ )
Note: I've set your next reply as private.