Creating custom post template
Flynn, you told me how to create a custom post and page template. I did make a custom PAGE template, and it worked fine. But it didn't work for the POST template. I did as you said, exactly, but the new template does not show up in the drop-down template box in the new/edit POST area. It does show up in the drop-down template box to the right of the PAGE editing area, but that isn't helpful when doing a POST.
I put this at the top of the new template: Code:
<?php What am I doing wrong? |
AFAIK posts cannot have Page Templates, page templates are for "Page" pages only.
|
I found out how to do it.
I copied index.php and customized as needed, then at the top, I put: Code:
<?php And I named the file my-garden-template.php. |
Good to know. Thanks for posting your solution
|
All times are GMT -6. The time now is 05:46 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.