[Resolved] Can't Echo a Link Properly to a Custom Post Type
This is the code I am working with:
echo '<a href="' . bloginfo('template_directory') . $slug['slug'] . '">' . $post_type->labels->singular_name . '</a>' .$markup;
I am trying to create a link to a slug named “Portfolio”. It links to a page in the template directory not the blog directory. The above code does this but displays the entire URL string before the link in regular normal text. How may I hide the URL path properly?
Where: `http://www.blah.com/blah/blah needs to be hidden.
- The topic ‘[Resolved] Can't Echo a Link Properly to a Custom Post Type’ is closed to new replies.