WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] template tags? (7 posts)

  1. tom5436
    Member
    Posted 6 years ago #

    How do you make it so if you add your own php file to your template that that file can use and access the template tags?

  2. xtra
    Member
    Posted 6 years ago #

    I think you need to hard code this into your own php file before hand?

  3. tom5436
    Member
    Posted 6 years ago #

    hard code what?

  4. Chris_K
    Member
    Posted 6 years ago #

  5. xtra
    Member
    Posted 6 years ago #

    more on template tags too
    http://codex.wordpress.org/Stepping_Into_Template_Tags

    For example if you wanted the Title (that you set in the admin section of WP) to appear on your web page you would place the following code into your template file:
    <?php the_title(); ?>

  6. tom5436
    Member
    Posted 6 years ago #

    Thanks Handysolo that article had what i needed

  7. tom5436
    Member
    Posted 6 years ago #

    Warning: Cannot modify header information - headers already sent by (output started at /home/champoli/public_html/sitedev/wp-content/themes/revolution_news-21/page_stories.php:7) in /home/champoli/public_html/sitedev/wp-content/plugins/sidebarLogin.php on line 12

    Ok so I got the pages working some what now I get this error?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags