WordPress.org

Ready to get started?Download WordPress

Forums

Connections Business Directory
[Plugin: Connections] How do you mask the Website URL? (3 posts)

  1. Jeff Mann
    Member
    Posted 3 years 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?

  2. shazahm1
    Member
    Plugin Author

    Posted 3 years ago #

    $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.

  3. Joan1911
    Member
    Posted 3 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic