-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can Subtitle be added to the Archive & Taxonomy Pages? #50
Comments
I have a development branch that starts to add this functionality: https://github.com/benhuson/wp-subtitle/tree/feature/term You may download that and tests if it suits your needs. It will be integrated into the main plugin after further testing. Use the API function to add term subtitle to your template files as detailed at the top of this file but use the action/filter ‘plugins/wp_subtitle/the_term_subtitle’ and ‘plugins/wp_subtitle/get_term_subtitle’. https://github.com/benhuson/wp-subtitle/blob/feature/term/plugin/includes/class-api.php |
Can it be used in a production site? |
See PR #51 I am using it in several production sites, so when I add it to the core plugin it will use the same API calls:
So to show as the main subtitle on a category/term page you could use:
In all likelihood, these changes will be in the next release of the plugin, although check the changelog when the plugin is release just to make sure. Edit: Also now added API for displaying subtitle on relevant archive pages (ie. category, tag, term):
|
Just re-reading the title of this issue, did you mean display a post subtitle against each post on an archive page, or allow terms to have subtitles so you could show a term subtitle at the top of a terms page? |
@benhuson What I mentioned in the post title is that let's say you have a default Now you can also create your own APT which can also have archive pages to let's say show all of the stuff in your CPT. Now in all of these archive pages when you call Let's say you have a CPT called |
The Post Types don't currently have an admin UI for editing subtitles, so for now you would have to add them via code. eg.
|
Hi,
is there a possibility to add custom subtitle to the archive & taxonomy pages?
The text was updated successfully, but these errors were encountered: