The Big Spring Sale! Up to 50% off!

custom template for selected posts

tony347
5 Posts
tony347 posted this 16 July 2021
Ask a Question

On my wordpress site created with nicepad i create a new blog post (and assigned new category 'kb')

On desktop(which i initially used to create the wordpress site) i created custom template with a blog post block added and above ithe blog post i added an image and button (which i want to appear on all blog posts for kb category)

I exported the theme with the new custom template as Wordpress zip theme (1 tick box), and imported it into Wordpress

I went to the newly created blog post on the desktop - clicked 'edit' and assumed the custom template would be in post-templates pull down to select, it isn't

Can you advise me, are custom templates able to be applied to specific posts in this way and the correct procedure to achieve this.

PS i already have the 'default' blog and posts template set up which is working ok i just want to over-ride it for certain posts (ones in 'kb' category but not archive page so category name is i assume irrelevant).

thanks

On my wordpress site created with nicepad i create a new blog post (and assigned new category 'kb') On desktop(which i initially used to create the wordpress site) i created custom template with a blog post block added and above ithe blog post i added an image and button (which i want to appear on all blog posts for kb category) I exported the theme with the new custom template as Wordpress zip theme (1 tick box), and imported it into Wordpress I went to the newly created blog post on the desktop - clicked 'edit' and assumed the custom template would be in post-templates pull down to select, it isn't Can you advise me, are custom templates able to be applied to specific posts in this way and the correct procedure to achieve this. PS i already have the 'default' blog and posts template set up which is working ok i just want to over-ride it for certain posts (ones in 'kb' category but not archive page so category name is i assume irrelevant). thanks

Last edited 16 July 2021 by tony347

Vote to pay developers attention to this features or issue.
4 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 20 July 2021

Hi Antony,

Nice to hear that you have found a solution. Please feel free to contact us on any occasion.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Antony, Nice to hear that you have found a solution. Please feel free to contact us on any occasion. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
tony347
5 Posts
tony347 posted this 19 July 2021

Thanks i wanted to add a set of elements to more than one post, as it is more than 1 post i found (probably) the best way to achieve this is to use a plugin to duplicate posts. (I used the The custom template though for a categories page).

Thanks i wanted to add a set of elements to more than one post, as it is more than 1 post i found (probably) the best way to achieve this is to use a plugin to duplicate posts. (I used the The custom template though for a categories page).

Last edited 19 July 2021 by tony347

Support Team
Support Team posted this 19 July 2021

Hi Antony,

Please check this article:
https://nicepage.com/doc/167465/custom-wordpress-templates

To create a custom template for an individual post check the WP template hierarchy diagram and name the template according to it (you need to use the correct post ID of the actual post on your live site).

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Antony, Please check this article: https://nicepage.com/doc/167465/custom-wordpress-templates To create a custom template for an individual post check the WP template hierarchy diagram and name the template according to it (you need to use the correct post ID of the actual post on your live site). ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
tony347
5 Posts
tony347 posted this 16 July 2021

I've now worked out how to get it to display on the archive page, it was just down to the naming convention for the custom template, but still looking into how to do for individual posts.

I've now worked out how to get it to display on the archive page, it was just down to the naming convention for the custom template, but still looking into how to do for individual posts.
You must log in or register to leave comments