Tell us what you are trying to do?
I want to grab the IDs of an image field with multiple instances to create a masonry gallery with a shortcode from another plugin.
Unfortunately this doesn't work. I put the right slug into the shortcode so it is: [get_image_ids field='taschengaleriebild' id='[wpv-post-id]']
Still doesn't put out the gallery right :/ the code is active.
The shortcode isn't getting executed at all.
I changed every get_image_id to get_image_ids in the custom code to match the shortcodes name - didn't work either.
I've made some adjustments to the code and it should now be returning the ID's of the images.
However it seems that your masonry grid shortcode isn't able to handle the shortcode as a parameter. There isn't anything we can do at this point since the code now provides the ID's for the item.
It is able to still take the ID as a parameter but if an ID isn't provided it gets the ID from the view loop. As you can see it still doesn't work. This definitely means the parameter isn't able to handle shortcodes.
the parameter is able to handle shortcodes. I am doing that in other ones. But having a shortcode inside a shortcode inside a shortcode doesn't work.
That is why I am asking if I can use variables in Toolset to help myself out here.
As it is right now the shortcode doesn't take another shortcode as a parameter.
The custom [get_image_ids] shortcode is able to now function without the ID parameter.
You can use it like this [get_image_ids field='wpcf-my-images']
This is what is now added to the masonry shortcode in this format and it still doesn't work. Is it that it is expecting the shortcode to just be [get_image_ids]
I'm not ignoring the question. However when you say variable are you referring to PHP variables? if that is so then no you are not able to do this directly.
The variable would need to be wrapped in a shortcode for you to be able to use it in views.
Though what you can do so that we have 100% clarity is provide an example of how you want your masonry shortcode to get the values. As you say you want to use variables but could you provide an example of what this would look like in the masonry shortcode ?
However what seems to be happening is that the masonry isn't accepting the shortcode.
Another solution I can think of is to return the masonry shortcode inside the custom shortcode that i've created. So we would pass the raw ids that we get from the database directly into the shortcode and return the results of the masonry grid code. All this as a single combined shortcode.