Skip Navigation

[Resolved] How to add view post to template – Related Posts

This support ticket is created 7 years, 1 month 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by joaoB-2 7 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#590935

Hello Hardworking Sunday Support 🙂

1 - How can I add view post/Read More, to the list?

hidden link

<span class="pdf-featured">[types field='publikationsumschlag' alt='%%ALT%%' title='%%TITLE%%' size='full' align='none'][/types]</span>

<h2 class="pdf-title">[wpv-post-title]</h2>

<h3 class="pdf-subtitle">[types field='veroveroffentlichung-untertitelffentlichung-untertitel'] [/types]</h3>

<p class="pdf-desc">[types field='veroffentlichungsbeschreibung'][/types]</p>

<span class="download-link">CLICK HERE TO DOWNLOAD</span>

<hr/>

2 - Also How Can I add the related posts which are on the same categories of the post once I am inside the post.

Thank you!

#591049

1 - How can I add view post/Read More, to the list?
Hi, you can use the wpv-post-url shortcode to build an a tag that links to the full post:

<span class="download-link"><a href="[types field='download-pdf' output='raw'][/types]">CLICK HERE TO DOWNLOAD</a></span> | 
<a href="[wpv-post-url]">READ MORE</a>

2 - Also How Can I add the related posts which are on the same categories of the post once I am inside the post.
You could create a View of posts, filtered by taxonomy term, where the taxonomy term is supplied by the current post. In the Loop Output of this View, you can include the link to each post using [wpv-post-link]. Then place this View in the Content Template or Layout for posts.

Our support policy is to address one issue per ticket, so if you have additional questions about how to implement that View, please open a separate ticket. Thanks for understanding!

#591182

Hi Bruno

Regarding 1, it did not work.

<span class="pdf-featured">[types field='publikationsumschlag' alt='%%ALT%%' title='%%TITLE%%' size='full' align='none'][/types]</span>

<h2 class="pdf-title">[wpv-post-title]</h2>

<h3 class="pdf-subtitle">[types field='veroveroffentlichung-untertitelffentlichung-untertitel'] [/types]</h3>

<p class="pdf-desc">[types field='veroffentlichungsbeschreibung'][/types]</p>

<span class="download-link">CLICK HERE TO DOWNLOAD</span> | READ MORE
<br>
<hr/>
<br>

hidden link

Please let me know the correct code.

Thank you

#591185

I have managed to solve.