Site logo

template tags

Page Header Template Tag Inside a ShortCode

I have written a custom shortcode which outputs the following HTML. When expanding the shortcode, GP is not expanding the template tags inside the HTML. So the rendered text does not include the full post title (or any other template tags). Is this by design or is there is a work around it? <header class=”entry-header … Read more

Custom post type taxonomy page header template tag strips post title

I’ve got a custom post type (made with Easy Content Types) “Team” where the Team post title is the person’s name. Team has a custom taxonomy called “Divisions” which has “Leadership Team” “Marketing Team” etc. I made a page header for this taxonomy using the template tag {{post_title}} but it removes the actual post title, … Read more

Adding Taxonomies to generate_archive_title() function?

Hi All, I have a taxonomy (offering_category) which will have a variable number of terms within it. I found the generate_archive_title() function in template-tags.php, but see only instances in which both the taxonomy and term are specified, like so: elseif ( is_tax( 'post_format', 'post-format-link' ) ) : _e( 'Links', 'generatepress' ); Since the categories are … Read more