I am trying to: Include a URL Link in my post via the URL field found under add new fields. I add the url when creating the post and expected it to show up with a LINK Icon (as an example) rather than the complete address showing in the post.
I put a place holder in when creating the field. What else do I need to do, or does the link always show completely?
Thank you.
Dear eileen,
You can setup your own link with HTML "a" tag, use custom URL field value in as "href" attribute, for example:
<a href="[types field="my-link" output="raw"][/types]">Link to something</a>
More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#url
Please let me know if you need more assistance for it. thanks
Thank you for that help.
I have another question related to a previous post - and my question has evolved since I have learned more. I hope I can ask it here. Refer to: https://toolset.com/forums/topic/adding-to-post-meta-data/
I want to create a post that does note include the post metada at the top. The suggestion was 1) to use a plugin to remove the metada (and I will try that) or edit the php file and remove the metada that way.
My theme does not allow for customizing this information.
If I edit the single.php so it does not call for the meta data, how do I insure that my custom post calls that php file (i.e. single.edited.php) rather than the original (single.php). ?
I don't want to change all of my posts to remove metada, just one version but I don't know how to call that specific php file. Does that make sense?
I need two different php files for posts - one that includes the meta data and one that has had it removed via the php file. When I create my new post type how do I make it call the correct php file?
Thank you very much for that help
For the new question, I suggest you follow wordpress document to setup your new theme file, see here:
https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
Single Post #Single Post
The single post template file is used to render a single post. WordPress uses the following path:
single-{post-type}-{slug}.php – (Since 4.4) First, WordPress looks for a template for the specific post. For example, if post type is product and the post slug is dmc-12, WordPress would look for single-product-dmc-12.php.
single-{post-type}.php – If the post type is product, WordPress would look for single-product.php.
single.php – WordPress then falls back to single.php.
singular.php – Then it falls back to singular.php.
index.php – Finally, as mentioned above, WordPress ultimately falls back to index.php.
If you still need more assistance for it, you can create new thread for the new question, that will help other users to find the answers.
Thank you. I will work with that and if I need more help I will re-post.