April 22, 2014 at 5:33 pm 19230
|Nicolas||I want to define a post template to new form posts and I don't see the option. Is there any way to do it? Thanks|
April 22, 2014 at 7:23 pm 19235
Its Quite easy. Whenever you are Building or Editing a From, You will find a
For A Better Understanding, Here is a Screenshot,
April 22, 2014 at 7:51 pm 19239
That’s about post types but not post templates.
April 22, 2014 at 8:16 pm 19240
My point was, You can Assign a Specific Post Type to a Specific Template, Then you can call it from here !
April 22, 2014 at 8:45 pm 19242
But I dont want users to post custom types, because of the architecture of my site, I prefer to use template posts.
April 22, 2014 at 9:05 pm 19244
Well Nicolas, There is only one Legitimate Way to Solve this problem.
Create a Hidden Field on the form, Specify a Fixed value for that. Now while viewing the post, fetch that value and use it to determine the Template. Like a Conditional template.
Hopefully that will help you.
April 22, 2014 at 9:52 pm 19246
Sorry but i don’t understand it.
Now I’m tring to get a php code to show author box only if the post author role is Author.