Hello. I've trying to find a solution, but couldn't find it, so I have to bother you...
I'm using templates and post fields to display and style the content on my post pages. I know I can add the code to the template and that will display it on the page where I want it and I can style it using CSS. I've doing that with no issue.
But the problem is that I don't want a particular post field to be fixed to a particular area of the post - meaning I don't want it to show after the body field or before another post field. I want to add it after paragraph A or B of the main content.
I want to use shortcodes, so I don't have to add the html manually each time I need to add it to a post. (see html code below)
<div class="inline-related-posts">
<div class="inline-related-posts-box"></div>
<h3>Leia também</h3>
<a href="<em><u>hidden link</u></em>">As minhas dicas para poupar dinheiro em Londres</a>
</div>
I already have a post field for the heading (which is going to be always the same) and one for the url (which allows multiple instances).
Basically the questions are:
1) How can I replace the html with a shortcode and display the shortcode with the CSS styling - but display it only if I add the shortcode to the post content, not by default.
2) I might have more than one URL post field. How do I select "URL A and not URL B" to display by using the shortcodes.
On the link below you'll find the example of how the box is working with html directly on the post.
hidden link
Thanks for your help.
Hi there. Please close this ticket as I found the solution and if possible please hide or remove the links and the code which shows the reference to the site.
Thanks.