Skip Navigation

[Resolved] Parent-Child post relationship (previous ticket)

This thread is resolved. Here is a description of the problem and solution.

Problem:

Display content according to custom field values

Solution:

You can try wpv-conditional shortcode like this:

[wpv-conditional  if="( $(wpcf-jobsconnected-company-page-url) eq '' )"]
No Postions Posted
 [/wpv-conditional]

 [wpv-conditional  if="( $(wpcf-jobsconnected-company-page-url) eq '' )" evaluate="false"]
<a href="[types field='jobsconnected-company-page-url' output='raw'][/types]">Click here to view</a>
 [/wpv-conditional]

Relevant Documentation:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-conditional

This support ticket is created 6 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 20 replies, has 2 voices.

Last updated by Luo Yang 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#661875

I will test this tomorrow and get back to you. Thanks again.

#669895

Please update this thread if you need more assistance, create new thread if there is new question, that will help other users to find the answers. Thanks

#686787

It is very close.

The link that it generates if there is an apostrophe is

<em><u>hidden link</u></em>

Is there a way to change the apostrophe to

%27
#689819

There isn't such a built-in feature within Toolset plugins, I suggest you create another shortcode to turn the apostrophe into "%27", see wordpress document:
https://codex.wordpress.org/Function_Reference/add_shortcode

I assume the original question of this thread is resolved:
https://toolset.com/forums/topic/parent-child-post-relationship-previous-ticket/#post-627488
Please create new thread for the new questions, that will help other users to find the answers.

#694333

Yes, thank you.

#695149

You are welcome