Forums

Custom get_page() ? (2 posts)

  1. MatthewRobertson
    Member
    Posted 7 years ago #

    To insert a header page, you can just use <?php get_header(); ?> and to insert the footer you can just use <?php get_footer(); ?> and so on.

    But is there an easy way to make custom get_'s?

    Eg, <?php get_introductiontext(); ?> or <?php get_desktops(); ?> ?

    If not, can you suggest an easy alternative?

  2. Michael Adams (mdawaffe)
    Member
    Posted 7 years ago #

    No.

    Yes:

    <?php include (TEMPLATEPATH . '/your_file.php'); ?>

    Where your_file.php is the file you want to insert, and is located in your current theme's directory.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.