dumb wordpress questine

Out of context: Reply #4

  • Started
  • Last post
  • 26 Responses
  • ukit20

    OK I see your problem...WordPress doesn't call the PHP templates directly, if it did it wouldn't be much of a CMS would it? What you want to do is, in your donate.php file, add some text at the top of the file like this:

    <?php /* Template Name: Donate */ ?>

    Then go into the WordPress admin and create a page, and for that page select the template "Donate." When you view the page, it should contain whatever is in the donate.php file.

    • by god, that works! cheershans_glib
    • though it's not very handy if anyone but me wants to edit it.hans_glib
    • That's where Custom fields come in. Replace the static content in the layout file with custom field calls and register those custom fields to that page layout.orrinward2
    • custom fields to the page layout, then people can edit the content by editing that page.orrinward2

View thread