The meta data displays all the time, is there a way to change the code so that it will not display if the content is NULL?
At the same time if you want to use the custom meta data to insert an Address for example it eliminates the functionality of the Website field so that this links properly.
The code that I gave you in the previous reply is for making any URL text (eg. http://uxbarn.com) of the custom meta field linkable, not about hiding the empty fields. In other words, it means that if you enter \"http://uxbarn.com\" into any meta info field, it will display as a link instead of a normal text.
In case you want to hide any empty fields instead of showing as \"-\", you would need to manually edit the code in the \"/uxb_templates/single-portfolio.php\" file.
The meta data displays all the time, is there a way to change the code so that it will not display if the content is NULL?
At the same time if you want to use the custom meta data to insert an Address for example it eliminates the functionality of the Website field so that this links properly.
Hi there!
1. You can edit the output of the meta data in \"/uxb_templates/single-portfolio.php\" file.
2. I will check this and update it in the next version. Thanks for your feedback!
Regards,
Paul
Regarding the 2.) about the custom field that is a link, please try this:
1. Open \"/uxb_templates/single-portfolio.php\" file.
2. Find this code:
3. Edit it to:
This should make the link text works properly.
NOTE: Make sure that the link text has \"http://\" at the front.
I have updated this and it is still displaying NULL values.
Please see my site, and the item linked:
http://dev.westcapmgt.ca/portfolio/forge-oil-gas-ltd/
Hi,
The code that I gave you in the previous reply is for making any URL text (eg. http://uxbarn.com) of the custom meta field linkable, not about hiding the empty fields. In other words, it means that if you enter \"http://uxbarn.com\" into any meta info field, it will display as a link instead of a normal text.
In case you want to hide any empty fields instead of showing as \"-\", you would need to manually edit the code in the \"/uxb_templates/single-portfolio.php\" file.
Regards,
Paul