Skip Navigation

[Resolved] Query Filter, Shortcode Attribute, Nesting Shortcodes

This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 7 replies, has 2 voices.

Last updated by HashimW3633 7 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#560381
query filter.png

I am trying to: display list of pages that have the same custom field data as the page the list is one

Link to a page where the issue can be seen: n/a

I expected to see: a list of pages

Instead, I got: a blank space where the pages should be

Here's the shortcode I put into my post: [wpv-view name="test-view-august-16th" limit="-1" offset="0" wpcomplete=[wpv-post-field name='wpcomplete'] ]

#560431

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Hashim,

Thank you for contacting our support forum.

Could you try doing the shortcode like this.
[wpv-view name="test-view-august-16th" limit="-1" offset="0" wpcomplete="[wpv-post-field name='wpcomplete'] "]

As you can see i've added some double quotes.

Please let me know if this helps.
Thanks,
Shane

#561060
toolset 2.png
toolset.png

Unfortunately, it didn't work. Any other ideas? I appreciate your help.

#561292

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Hashim,

Would you mind providing me with admin access so that I can take a further look at this one for you ?

The private fields will be enabled for your next response.

Thanks,
Shane

#561377

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Hashim,

I see the issue here.

The plugin that saves the wpcomplete field is storing the items as a json string like this

{"course":"Job Roadmap"}

Does the plugin have a shortcode to retrieve its own information ?

Please let me know.
Thanks,
Shane

#561388

unfortunately, they don't have a shortcode for getting just the course name.

Is there a way I can "sanitize" this result and use it? Or is that not the right way to go about it?

#561410

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Hashim,

It seems that this filter won't work and it has to do with how the plugin is storing the data as a JSON string. Our views plugin needs the value of the field but because it is stored as an Entire JSON then we are not able to get the value of the field itself.

Why not use a field in types to replace this field ?

Thanks,
Shane

#561411

I would love to replace this field, but the plugin makes and stores data into this field.

WPcomplete is a plugin that adds a "complete" button on lessons pages.

This field is where the name of the lesson page is stored.

Thanks for your diligent help!