Hi there,
Im looking for a way to put a shortcode into my ACF custom field [nested_shortcode] and with Advanced Views Framework im using the ACF shortcode to display my [nested_shortcode] – how is this possible? as of now – im just getting the [nested_shortcode] as text.
Chat GPT has been super unhelpful, maybe you han help me out..
Question:
“can i put a shortcode inside a shortcode , in the WordPress plugin “advanced view framework” id like to make an ACF custom field as a shortcode and display it on a post , the custom field will contain a shortcode . but now it only diplays the shotcode as the actual shortcode – how do i fix this?”
Answer:
In WordPress, you can nest shortcodes and process them so that the inner shortcode is rendered correctly. The issue you’re experiencing happens because WordPress does not automatically process shortcodes within the output of another shortcode.
To fix this in the Advanced View Framework or any custom WordPress plugin, you need to ensure that the output of the outer shortcode is passed through the do_shortcode()
function. Here’s how you can address this:1. Modify Your Custom Shortcode Callback
If you are creating a custom shortcode to display an ACF field, update the callback function to process the inner shortcodes. Here’s an example:
php
Copy code
add_shortcode('acf_field_shortcode', function ($atts) { $atts = shortcode_atts([ 'field' => '', 'post_id' => null, ], $atts); // Get the ACF field value $field_value = get_field($atts['field'], $atts['post_id']); // Process shortcodes within the field value return do_shortcode($field_value); });
With this setup:
[acf_field_shortcode field="your_field_name"]
?will render the ACF field’s value, processing any shortcodes inside it.Hi,
I’m using WPML and after creating a View where I added labels (in Fields tab), I can’t see those labels for translation in WPML even after rescanning for new strings. I read this support file (https://docs.acfviews.com/templates/multilingual), where it says:
Advanced Views uses the built-in WordPress translation function __('field label', 'themeDomain')
for all View and Card labels. This allows you to translate labels seamlessly using your preferred multilingual plugin, eliminating the need for creating a separate View or Card for every language.
I thought this meant the labels would appear automatically in the strings to translate. Since that didn’t work, I did activate the File system storage, and it did create a multilingual file in my child theme with all the labels set in the Fields tab of the View and also the one I manually added to the template (ex: {{ __(‘Coordonnées’, ‘acf-views’) }}).
I noticed that in the multilingual file, the labels that I set in Fields tab of the View do not have a textdomain. Does this mean I have to manually edit this language file to add a textdomain?
The label I added manually in the template does have the textdomain I specified in the template. I wasn’t sure which textdomain to use: acf-views or my theme’s (generatepress), but either way, this label also does not show up in the string translations in WPML.
So after trying all this, none of my labels seem translatable. I must be missing something. Can you help with this?
Thanks!
Hi Support Team,
I’m working on a project that involves several custom taxonomies and custom fields created using ACF, and I wanted to check if your plugin would be able to handle this setup for dynamic content display.
Here’s example:
What I Want to Achieve:
Could your plugin (lite or pro) support this type of dynamic content filtering and display based on these custom field relationships between taxonomies? Any advice on how to set this up with your plugin would be greatly appreciated!
Thank you for your help.
]]>Hello,
I’m trying to display several locations on a map and have gone through all the steps in your Learning Hub
(5. Advanced: How to display all WordPress CPT items on a single map )
I created 3 CPs for this, but unfortunately it always shows 3 maps instead of one.
Or is that a Pro feature of AVF?
I noticed that the local folder doesn’t contain leaflet-min.js and I changed the path to leaflet.js. But 3 maps are still visible.
Do you have any idea what the problem might be?
Best regards, Michael
Hello,
I am using the Advanced Custom Fields plugin and I created a custom post type called “Wholesale Products” as well as a few custom fields assigned to the “Wholesale Product fields” group.
I am trying to add a view to a page but I simply cannot make it work. I have a view created and I’ve added the shortcode but nothing shows on the page.
I have tried several things::
[avf_view name=”Wholesale Product fields” view-id=”66ccd3999e73b” object-id=”term” term-id=”product_cat”]
[avf_view name=”Wholesale Product fields” view-id=”66ccd3999e73b” object-id=”post” term-id=”wholesale-product”]
[avf_view name=”Wholesale Product fields” view-id=”66ccd3999e73b” object-id=”post_type” term-id=”wholesale-product”]
Some screenshots:
https://ibb.co/FBqnshp
https://ibb.co/SwRr82q
https://ibb.co/f0hBWxR
Please please help.
]]>HI. I am having a problem with the template file not being found (not all the time though) and displaying a red error message saying…
Advanced Views (view_65ef28850c35f) template: Unable to find template “view_65ef28850c35f.twig” (looked into: /home/curriemotors/public_html/wp-content/uploads/acf-views).
I have upgraded hosting and tried everything to resolve it. Sometimes they load, then other times they all don’t. This is also what’s in your debugging dump file (just a part)
{“error_logs”:”E_WARNING : file_get_contents(/home/curriemotors/public_html/wp-content/uploads/acf-views/view_65eefcc910016.twig): Failed to open stream: No such file or directory\n2024-07-23 16:17:19 (/acf-views/prefixed_vendors/vendor/twig/twig/src/Loader/FilesystemLoader.php:107)
Can you help at all?
]]>Cards – view cannot be selected (error).
]]>Good day,
I’m trying to add a new view from my ACF but when I click the “Add New” button only the “Name of View” Field is appearing but the other tabs and fields are missing. Nothing else follows.
I have installed the Advanced Views Lite plugin and every time I try to click Add View or Add Card I get the Animated Coffee Cup, after the proper screen flashes.
I looked at the similar question from the earlier person ( https://www.ads-software.com/support/topic/animated-cup/), but I cannot seem to find the same directory structure that was described.
I have tried deactivating other plugins, and that did not help.
Any help would be welcomed.
]]>I’ve tried this with both ACF’s WYSIWYG field (using the classic editor), and the built in content editor for a CPT, but when I try to embed it into a View/Card Template, it outputs any paragraph breaks or line breaks as HTML Tags on the front end.
For example, instead of paragraphs being split up, it’s just one bundle with visible < p > tags in place.
Is there a setting I might be missing?
Edit: I’ve found the answer to my own question via importing a card ; |raw had to be added to the end of the field tag in the template.
]]>Hello, your free version (3.4.9) of your plugin “Advanced Views Lite” contain a virus type trojan called Trojan:Script/Phonzy.A!ml (scanned and detected with Windows Defender this day)
i’ve lost 2 times all my pages, posts and users. Are you aware of this?
Best regards,
Laurent
]]>Hi, every time I try to modify an ACF View I get this error “Failed to initialize plugin: tablepress_tinymce”, it has created two new fields that I can’t delete, so in the page where I show this card I get the error “ACF Views (view_6536c19e85b92) template: Unexpected token “punctuation” of value “.”.”
The plugin is updated and I don’t know how to fix it. Can you help me?
Using Advanced Views Lite v.3.4.8. getting a message Advanced Views (view_xxxxxxxxxxxxxxx) template:?Templates folder is not writable. This has started recently, but no changes have been made to the site. Looking inside on this particular view are two messages – one saying the template folder isn’t writeable (if you can give me the folder location on the server I can check/fix that) but also one that says Validation failed. 1 field requires attention, but all fields are OK.
You can see this at the above URL if you click the button marked +info. This is on a live site so fairly important I get a fix,.
MTIA
Rob
]]>Hi
I have tryed to make new View and Card for my ACF posts. But then I try to display it by shortcode it show me such error:
Advanced Views (view_660828efd7cc0) template: Impossible to access an attribute (“value”) on a integer variable (“2”).
Advanced Views (view_660828efd7cc0) template:?Impossible to access an attribute (“value”) on a integer variable (“2”).
Why is it possible ?
This plugin gives a fatal error if Timber, which uses Twig, is active and installed on a website. Tested both v1 and v2.
PHP Fatal error: Cannot redeclare twig_cycle() (previously declared in /acf-views/prefixed_vendors/vendor/scoper-autoload.php:37)
Any idea how to solve this? ??
]]>Hi,
I am trying to add my selected currency symbol from wordpress to the price field.
I cannot use a span function, because I am installing a currency converter. How would I do this?
Thank you
]]>With activated Advanced Views Lite, once I try to add new NextGen gallery the following error pops out: “SyntaxError: Unexpected token ‘<‘, “<p>There h”… is not valid JSON.”
]]>Hi
We are using img src in Checkbox for an item and as it shows perfectly in admin it is showing html code on page ..
This is custom code in template
{% if proizvajalec.value %}
<div class="acf-view__oblika" style="border-bottom: 1px solid #ccc; margin-bottom: 10px; display: flex;">
<div class="acf-view__oblika-label" style="width: 30%;">
<strong>{{ proizvajalec.label }}</strong>
</div>
{% for choice_item in proizvajalec.value %}
<div class="acf-view__oblika-choice" style="width: 70%;">
{{ choice_item.title }}
</div>
{% endfor %}
</div>
{% endif %}
Any idea how to show image on page?
Thank you
]]>hello,
How I can make the label bold: Voir le site :
Shortcode : [acf_views name=”Log Site” view-id=”65eae8147e815″]
.acf-view__log__site-label {
font-weight: bold;
}
THANKS
The publish button is not clickable….. This is the newest WP core, on PHP 8.2 NGINX server. Permalinks are set to custom.
]]>Hello,
I use a loop to display the links created with ACF, how to put the label in front of the links.
https://snipboard.io/YorWy1.jpg
THANKS
]]>Hello,
How to remove underlining on web links.
https://snipboard.io/ZFaHWm.jpg
THANKS
]]>I have a problem with the visibility of the view.
Once I create a view everything works as long as I don’t set the visibility from public to private. Even if the visibility is set as private the view is visible to everyone, furthermore if I try to make any changes and update the changes they are not saved.
WP version: 6.4.3
php version: 8.1.27
Theme: an Astra 4.6.7 child
Advanced Views Lite version: 3.4.0
Can you help me?
Thanks in advance
Hi
Advanced Views Lite V3.3.4
Field Dropdown menu jump to “pro docs”, can’t select by mouse.
https://youtu.be/UU-yX6B3o30
Is it possible to choose posts from a specific category? I can’t seem to find this option.
]]>Hi Thanks very useful plugin, I translated to Japanese
By the way, I found some issue after the new install plugin.
Publish menu is transpaarent and cannot Publish the View, after the publish, short code is not assign to correctly( auto save draft).
I had same trouble on other theme and use lots of plugin. so I now check and use the default theme, use only need plugin.
I use There is no error message.
The same was done in the environment used during ACF Views and there were no problems. It seems to me that the problem occurs when a new installation is made.
]]>Hello, thanks for the great plugin but i can’t save now
it started off great but, as of last night, i get errors when trying to save…the card or view that i try to save doesn’t show up in the list and when i re-enter, i get a message saying that “the Backup version is “The backup of this post in your browser is different from the version below.”
My version is a Managed WordPress on Godaddy with Cornerstone.
In console i see many messages like so: Advanced Views suppressed: https://c4a.805.myftpupload.com/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&context=edit&_locale=user
]]>object-id argument contains the wrong value
Since the 3.0.0 updates, This is displaying in red in place of any shortcode I’ve used on my website. This is only occuring on shortcode placed in the WordPress block editor.
The views that are in cards are working fine.
I’m not sharing a link because I need to restore a backup.
Hello,
I cannot publish my view. The button is grayed out and not selectable. This is my local test system. WordPress 6.4.2, Elementor Pro, and Hello Elementor as the theme.
There are no entries in the error log accordingly, as I cannot even click the button.
What am I doing wrong?
]]>Hi. I’ve update to last version 3.0.0 (now, called “Advanced Views Lite”). I use this plugin to show courses information inside a Query loop block (the ACF view is repeated for each single course, that’s great!). This worked fine for me, but after last update, all ACF views inside the Query loop block just are filled with current page information, not custom post type added in Query loop block (Courses). This happend with all loop bloks (and only in loop blocks)
]]>