Skip Navigation

[Resolved] URL in post field group displays complete address not "Place Holder

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

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 5 replies, has 2 voices.

Last updated by eileenN-2 7 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#566162
2017-09-02_22-09-33.png

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.

#566349

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

#566351

Please let me know if you need more assistance for it. thanks

#566412

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

#566604

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.

#566813

Thank you. I will work with that and if I need more help I will re-post.

The forum ‘Types Community Support’ is closed to new topics and replies.