Archived topic
Seperate date and author name
5 replies · Started by webintas on June 15, 2020
Hi there,
At my blog single page I want to seperate the meta-texts (the date and the author) by a | like at the archieve page in the WP Show Posts plugin. I have looked in the settings but cannot find a setting for that. Is it possible?
Also, is it true that the entry meta is not shown on the single post pages of custom post types?
Best Regards,
Peter
Hi there,
can you provide a link to your site so i can provide the right method for adding the | pipe divider.
You can enable meta for custom post types:
https://docs.generatepress.com/article/generate_entry_meta_post_types/
https://docs.generatepress.com/article/generate-footer-meta-post-types/
Hi David,
Thanks for your help. URL added to the original post.
Try this CSS:
.entry-meta span:not(:last-child):after {
content: '|';
margin: 0 5px;
}
Hi there,
Thanks! Regarding: https://docs.generatepress.com/article/generate_entry_meta_post_types/
Is it possible to have different meta data on diffenret post types? I mean that for the default I want date and author but no author for a custom post type. Should it be done by CSS or is there a PHP way which I would prefer..
You would need this filter:
https://docs.generatepress.com/article/generate_header_entry_meta_items/