Displaying all meta data
-
When choosing a taxonomy, for example categories, when making a new Show Posts only the categories are displayed for the posts and not the terms. If I choose a term as a taxonomy, only the terms are displayed. Is it not possible to display all meta data for the posts regardless of whether you have selected categories or terms as a taxonomy?
-
Hi there,
It’s possible to do both but it’ll require custom PHP. It’s even possible to move it to another area within the post list.
See this topic:
https://wpshowposts.com/support/topic/adjusting-output-for-datetitlecattermsDid you provide any link? I don’t see it, I’m afraid.
Alternative to filtering an existing meta item, you can hook your things within these hook list I’ve provided here:
https://wpshowposts.com/support/topic/bbpress-metadata-and-dates-in-wpshowposts/Test all and see what hook location works for you.
The link: <a href=”https://fotografregistret.se/pionjarer/1850-tal/
Use the
wpsp_after_title
hook to insert your elements.Thank you!
Two small things:
1) Is it possible to get a ‘, ‘ seperator between categories and terms? (https://fotografregistret.se/pionjarer/1850-tal/).2) Is this CSS functional?:
.wp-show-posts-entry-meta {
font-size: 14px;
font-style: italic;
color: rgba(0,0,0);
}Lars Eriksson
1) Is it possible to get a ‘, ‘ seperator between categories and terms? (https://fotografregistret.se/pionjarer/1850-tal/).
Not sure what you mean. Your list already have one. If you wish to modify it into something else, use the
wpsp_term_separator
filter to change it.2) Is this CSS functional?:
The correct selector is
.wp-show-posts-meta
but if you want to target the terms specifically, go with.wp-show-posts-terms
.See picture below: To the left of the arrow is categories, to the right is terms. There is no ” , ” seperator between them.
https://drive.google.com/file/d/1fB7yRB38_xFG9_SS8lcrzuJftTnqmbu_/view?usp=sharing
Ah I see,
That’s the element you’ve manually entered.
You should manually add a
,
to that as well because that’s not a term. It’s something you inserted.No, I have not inserted anything manually, they are all categories and tags. I have made two hooks, one for categories and one for tags, as you showed (https://wpshowposts.com/support/topic/bbpress-metadata-and-dates-in-wpshowposts/).
But at the presentation on one line, there is no space between them (“,”. Of course, it would be best if you could combine the two into one hook, but I’m not a programmer. If you would like to do this for me, I would be happy.
Lars Eriksson
Where to do you want it placed?
Do you want it this way?
https://share.getcloudapp.com/GGuQyZZlNote: There’s no comma between category list and tag list because they’re 2 separate lists.
-
This reply was modified 3 years, 12 months ago by
Elvin.
The comma should be between the end of categories “ÖSTERSUND” and the beginning of tags “1850”. But if it is not possible to do what a am Ok with that, Thank you!
Try this CSS:
span.wp-show-posts-terms.wp-show-posts-meta:last-child:before { content: ", "; }
After a lite change in worked!
span.wp-show-posts-terms.wp-show-posts-meta:last-child:before {
content: “, “;;
}Thanks! I am closing this now.
Glad you got it sorted. No problem. 😀
-
This reply was modified 3 years, 12 months ago by
- The topic ‘Displaying all meta data’ is closed to new replies.