[Resolved] Shortcode with id=”$current_page displays info for loop item in 2.6-RC
This thread is resolved. Here is a description of the problem and solution.
Problem: The $current_page syntax does not appear to work as expected in the new Views 2.6-RC. Shortcodes using id="$current_page" show information about the current post in the loop, not the current page.
Solution: Update to the latest 2.6-RC2
This support ticket is created 6 years, 7 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.
I am trying to:
Output a link including a taxonomy term attached to the page in which a View appears, rather than the taxonomy for the item in the View loop
Link to a page where the issue can be seen: hidden link
I expected to see:
In the first post returned in the above view ("Test Links"), the links on the post title, and "Read more" should have the term from the region taxonomy (of the page) appended. So the link should look like this:
<em><u>hidden link</u></em>
Instead, I got:
The link is getting the terms from the post itself appended, and in this case, the post has two terms, so the link is appearing as:
<em><u>hidden link</u></em>
The post title is being output using the following code in the content template:
Hi, I see what you're talking about and I am investigating. I may have to reach out to my developers to see if the syntax changed and I haven't received that information, or if this is a bug. Please stand by and I will update you as soon as I can.
Thanks for the feedback. This is Juan, Toolset team leader.
You are entirely right. We worked on this attribute and its syntax to etend it for post relationships as provided by the upcoming Types, and somewhere along this chnage we skipped porting this attribute value.
We just released a new beta package for Views, named RC2 (for release candidate 2) that contains a fix for this problem, and brings back support for that attribute value. If you could confirm it we would thank you a lot.
Hi Chris, please find the RC2 plugin available for download now with a fix for the $current_page issue. Let me know if the problem is not completely resolved.