Adding Content to Blank Pages Automatically
-
Hey all. I have been using WordPress for a couple months now and am almost finished with my first project. I wrote a couple php pages to use in my custom theme as plugins and they work great. However, I have a small need that I feel should be easy to do. Basically, I have my TOC and child pages. In between them are category pages, which are not used and are blank. I would like to put a children list on each of these blank pages, for which I have already written the php. However, the ultimate goal is that anyone can edit or add posts without knowing any code at all. To accomplish this, I was wondering if anyone knows how to automatically include my php code if the content is blank. I can certainly just include my php code on each of these pages, but again, that is not ideal. I know there are plugins such as some toc plugins that allow substitution for a comment or something within the post content so I feel this should be possible, I just cannot find any plugins or documentation on accomplishing this. Thank you in advance for your help.
- The topic ‘Adding Content to Blank Pages Automatically’ is closed to new replies.