Custom Post List that opens the post

Hello. I’m hoping you can guide me. I have created a page in X. I added a row and set it to be Looper Provider and set it to link to a Custom Post Type. I then added a text-box to the row and set it to be Looper Consumer.

In the text box, all I want to appear is the title of the post, but I need the title to be hyperlinked so it opens the post. If I add the Dynamic Content item “Permalink” it does what I need, but displays more than the title, including the excerpt, featured image, a footer, etc. (See capture attached)

I have tried using CSS to hide these things, but they do not seem to be able to be targeted with CSS. Is it possible because it is “Automatically Generated CSS” it is not able to be selected?

Also, when the page first loads, the post title appears first in red (the theme’s default link color). It then turns black and the rest of the content that I would like to hide appears. I have no idea why this would be?

Link to the web page is below. It is a development site.
https://bernscommudev.wpengine.com/careers-test/

Do you have any thoughts on how I can add a simple list of the Post titles from the Custom Posts and link them to open the posts when clicked?

Hello @mcaravaglia,

Thanks for writing in!

In your text element, you can insert this:
<a href="{{dc:post:permalink}}" title="Permalink to {{dc:post:title}} post item">{{dc:post:title}}</a>

This will display the post title and it is also linked to the post item.

Best Regards.

Amazing. Works perfectly. Is there a way to make it open in a new tab? I tried adding “_target=blank” but that didn’t work.

Is there any resource available where I learn more about how to use Dynamic Content to perform tasks like this?

Hi @mcaravaglia,

Glad that it worked for you. And the target attribute value should be **target="_blank".

Hope it helps.
Thanks

Ooops. My bad. Thanks again.

You are most welcome @mcaravaglia

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.