Jeff Mann
Member
Posted 1 year ago #
I would like to mask the URL to the website of someone's profile. Currently there is only the option, typing in the full URL into the website field, including http:// and calling it using:
<?php echo $entry->getWebsiteBlock() ?>
It appears as so: "Website: Http:// FULL URL LINK"
I've tried the following:
<a href="<?php echo $entry->getWebsiteBlock() ?>">MASK HERE</a>
and
<a href="<?php echo $entry->getWebsites() ?>">MASK HERE</a>
but neither worked. the first just displayed 'array', and the second one broke the site.
Any help?
$entry->getWebsites() is an array of objects you need to loop thru them. Take a look at the code in $entry->getWebsiteBlock() as an example.
Joan1911
Member
Posted 1 year ago #
I am busy trying out SEO Ultimate and that has a masking feature for links within posts.
SEO Ultimate really has some very neat features and so far so good - it is doing what I was looking for, Title Tag and Meta Descriptions that are being duplicated, found in Webmaster Tools.
New to Link Masks so a bit cautious on how to implement, but this may be the answer to your problems.