Support » Themes and Templates » Add additional pages theme.

  • Is it possible to add additional pages to your theme without having to use the wordpress CMS to create them?

    I want to add a few extra pages that require php like contact forms and event calendars, I have been using plug-ins that create a page when activated but I would much rather just be able to create additional pages within my theme that do these task.

    The theme is installed on about 15 different websites and rather than having to add the plug-in every time I would much rather just update the theme.

    Thanks in advance?

Viewing 6 replies - 1 through 6 (of 6 total)
  • If we try to use the same language… that might help.
    When you say “pages” are you referring to Pages or template files? It is totally not clear from your post.

    Whatever. If your theme is widespread you should look into putting your plugins in the theme functions.php instead.

    Sorry it took me so long to replay, been away for a few days.

    NO not pages but template files, I want to be able to create a file like event_calendar.php and be able to include as part of my theme. I took Root advice and ran my plug-in from the functions.php instead, this works quite well as I don’t need to activate them on each site however if there is another solution it would be good to know.

    I am wondering something similar to this actually, i have a file called cpemail.php and want it to be wrapped witht he header and etc, i have tried just copying code into a page and use inline-php but a php variable in an html portion confuses inline-php so it doesnt work PROPERLY. so i was wondering if somehow i could add it by something like adding [exec] cpemail() [/exec] or something like that to a page, but doing that failed and not sure why. i dont know php however some portions i do find much easier to deal with than html itself.

    Cathy Tibbles


    I don’t understand the html bit, but if your “page” is a regular text document, saved as php and uploaded into the theme folder, then: write a template Use whatever name you want, except the ones wp uses. Call the different block templates (header, sidebar, etc) in the template. Save it to the theme folder. And of course add some navigational links from main templates so users can access your templates.

    Am I missing the question???

    thank you i found my answer by clicking “template” above and found what i was looking for, which was this right here,<?php include (TEMPLATEPATH . '/searchform.php'); ?> i just modified it by replacing searchform.php with cpemail.php and put it in a wordpress page like i was talking about (write>>page).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add additional pages theme.’ is closed to new replies.