Tag Description
-
Hi,
Is there a way to link to the tag description in stead of linking to the posts ?
Thanks, Fred
-
Can you explain a little more what you are trying to do?
Never mind, I found another way to achieve what I want.
But, for your idea, what I preferred is that when somebody clicks on the tag, he/she will see to the tag description instead of a list of posts in which the tag is used. But that’s not possible.
So, what I did is:
– I created a new post category from which I make the tag map;
Then it works fine. But, when I would like to show a short description (extracted from the tag) it does not show. Also there is no read more.
The shortcode I use is:
[mctagmap show_pages=no show_posts= yes from_category=wordpress-index descriptions=yes more=Lees verder columns=1 width=100%]
The tag map shows as expected but:
– there are no descriptions;
– there is no “Read More” ;And is it correct that it uses the post title to show in the tag map, instead of the tag used with the post ?
Thanks !
Well in your shortcode you are telling it to show posts (show_posts=yes). Before I set up a local test try this shortcode:
[mctagmap from_category="wordpress-index" descriptions="yes" more="Lees verder" columns="1" width="100%"]although off hand (it’s been a while) I’m not 100% from_category will work but it’s a start.
Also note the quotes in my shortcode. Yours didn’t have them and not sure if that’s just a typo or not.
If this doesn’t work can you send a link to the page you are working on?
Thanks for your reply.
The from_category is working just great and yes, I am using quotes.
What I would like to do is:
– show post
– from category
– show the excerptThat is working for tags and pages, but not for post. Since the show_post has not an option like with show_pages / page_excerpt.
Is that doable ?
Thanks anyway for your fast reply.
Hi Tug,
I figured it out…
In your mctagma_functions.php, I’ve added the following lines (at line 700, the part that shows the descriptions):
if($show_posts == “yes” && $page_excerpt == “yes”) {
$mctagmap_description = ‘<span class=”tagDescription”>’ . $pex. ‘</span>’; }Then just use the shortcode with:
show_posts=”yes” and page_excerpt=”yes”
Then it works.
My complete shortcode then looks like:
[mctagmap show_posts=”yes” page_excerpt=”yes” from_category=”wordpress-index” show_navigation=”yes” group_numbers=”yes” columns=”1″ width=”100%”]
Thanks, great plugin !
oh, nice. I’ll test it out and see if I should add it into the core.
You’re welcome and thanks again for this great plugin !
Turns out the show_posts/show_pages check in my code wasn’t even needed. I removed it from version 15.0.4. Thanks for the heads up on this.
-
This reply was modified 7 years, 4 months ago by
tugbucket.
-
This reply was modified 7 years, 4 months ago by
The topic ‘Tag Description’ is closed to new replies.