Hi Experts,
Can anyone show me how to display a custom post for single post template?
Thanks for your help!
Best regards,
Hi Experts,
Can anyone show me how to display a custom post for single post template?
Thanks for your help!
Best regards,
Hi @raywade90,
To make a custom single post template
single.php
or some more complex variation from the dropdown.Hi RobM
Thanks you, but I want to show abc2 Post for new template.
Itâs mean:
Abc2 post for new single post(new template for abc2 post)-> when user click post of abc2 post â itâll show single post(template) of acb2
Thanks and Regards.
Hi @raywade90,
Okay, gotcha. So this will require an extra step or two.
So you want to create your post template as above. Best practice would be to give it an export name of âsingle-abc_2.phpâ.
So the page settings for your post template would be:
You can change out the heading/footer if you want by checking the Master page checkbox.
Next, on your main page, register the post type. I put my action on the body tag.
Thanks and Best regards