Skip Navigation

[Resolved] filter view content based on user organization

This support ticket is created 2 years, 11 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)

Tagged: 

This topic contains 5 replies, has 3 voices.

Last updated by salimA 2 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2062659
hi7yk3e.JPG

Hi

I am trying to use the below shortcode to filter the view content based on the logged-in user organization.

[wpv-view name="view-slug" org="[types usermeta='org' output='raw' current_user='true'][/types]"]

it was working fine previously, but suddenly the code is changed to be like
[wpv-view name="view-slug" usermeta="org" output="raw" current_user="true"][/types]"]

it does not work as expected on the page, it comes like on the attached image

every time I change it, it returns back after saving the page

#2062933

Shane
Supporter

Languages: English (English )

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

Hi Salim,

Thank you for getting in touch.

How was this inserted into the page? Are you using a pagebuilder such as WPBakery or Divi or Oxygen.

I know for the builders you may need to add the nested shortcodes in a Text Editor block.

Thanks,
Shane

#2065341
texteditor.JPG

Hi Shane

thank you for your reply,

I am using the Avada theme text editor. See the attached image.

#2066581

Hello, Shane is unavailable today because of a national holiday so I'm checking on his tickets. Page builders like Avada often have trouble interpreting nested shortcodes, so I suggest you try the curly bracket syntax instead here. This example shows the curly bracket shortcode syntax:

{!{wpv-view name="view-slug" org="{!{types usermeta='org' output='raw' current_user='true'}!}{!{/types}!}"}!}

Shane will return tomorrow to continue assisting you here if you have additional questions about this.

#2067877

Shane
Supporter

Languages: English (English )

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

Hi Salim,

Christian Had provided an update on this thread for me.

Can you confirm that his advice allowed you to resolve the issue?

Thanks,
Shane

#2068551

Hi

Thank you Christian for your help and thank you Shane for your follow-up. Yes, My issue is resolved now.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.