Skip Navigation

[Closed] View dynamic attribute shortcode

This support ticket is created 4 years, 9 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 4 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1558079

I have a view side other view.
We need send dynamic value (post id) in “ids” attribute to second view.

I’m using:

[wpv-view name="check-item" ids="[wpv-post-id item='$current_page']"]

But don’t work. 🙁
What can i do?

#1559399

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I would like to know what post ID you want to pass to the ids attribute? Do you want to pass the current post ID? If yes, I also would like to know where the view you shared you have added?

#1563151

Hi Minesh!

Do you want to pass the current post ID?
No, i don't need the id from current post in the loop.
I need the id from Post where this View is shown.

Thanks!

#1563419

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

so the method of how you are trying to get the current post ID by passing the attribute value $current_page is correct.

But which you try already and you are saying its not working, so I need a problem URL where you added the view as well as access details so I can check what's going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

The topic ‘[Closed] View dynamic attribute shortcode’ is closed to new replies.