• I tried to add my own pieces to my homepage, ones that would go away when looking at a full-post vs looking at the list of posts.

    When I try to add sections – ftp’ing php pages in, to be added to the index.php they don’t show up as “PageX”, “PageY”, they end up as “PageX.php”, “PageY.php”.

    I’ve Tried

    <?php
    
    get_pagex.php();
    
    ?>

    I’ve also looked at “how to build your own template” and I guess I’m just skipping over the part I need to add my own sections.

Viewing 6 replies - 1 through 6 (of 6 total)
  • get_pagex.php();

    Did you re-write the WP engine to have such a function? Did you define that function in the functions.php of your theme?
    I guess you didn’t. So it will not work.

    Now, instead of telling us how you want to do something, rather explain what do you want to achieve. It would make everybody’s life easier…

    Thread Starter boldfacelies

    (@boldfacelies)

    I haven’t done anything. I am asking How you would do such a thing. Thought that might be clear with my title.

    I looked at the functions.php page, assuming that’s where everything would be written out about those php functions, but they werent. So I assumed, naturally, to just replace the names of those files, with the names of my files to add and add them in.

    I just want to add in my own php pages to be included in the master template index. Just separate content.

    You are using non-WP terminology and nobody can guess what you want. What is “master template index”?
    Learn about WP themes and then you will be able to ask more meaningful questions.
    Theme_Development
    Template_Hierarchy

    Thread Starter boldfacelies

    (@boldfacelies)

    nevermind, you clearly cannot interpret what i’m saying.

    i found what i need.

    if anyone cares to add their own files, and have them loaded into their main index template… use this code:

    <?php include ('page_you_want_loaded.php'); ?>

    Well, that’s a simple PHP include.
    Why dind’t you ask THAT?

    e.g. how do I include a file into a template file?
    Asking the right question is half of the success…

    Thread Starter boldfacelies

    (@boldfacelies)

    gg

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding my own “get_pagex()” ?????’ is closed to new replies.