WordPress.org

Ready to get started?Download WordPress

Forums

Link to my own page template (8 posts)

  1. felixkarlsson
    Member
    Posted 4 years ago #

    I use the plugin wp-postratings and created a page template to see a top list, but I don't know how to visit that page. Probably a very simple problem :P

    Thanks
    //Felix Karlsson

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    have you actually made a page using that page template?

  3. felixkarlsson
    Member
    Posted 4 years ago #

    I followed this link: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    And don't know what i should type in to visit the page i created.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    thats a template.....you have to actually make a page using that template. The page uses the template. You create a template just like apost from the admin area.... when creating the page you can select the template you just created. Once you make the page, it will have a permalink, just like a post that you can link to

    --I'm not even sure if a template is the way to go for what you are doing? Couldn't you just display your content on a page? (I'm not familiar with the plugin...sorry)

    Templates are set up to change the appearance/behaviour of pages.... you make a template and then can apply that to one page, or many pages....

  5. felixkarlsson
    Member
    Posted 4 years ago #

    Thank's for your answer.

    Okey, but how should i do otherwise?

    To show the highest rated from the readme file:

    <?php if (function_exists('get_highest_rated')): ?>
       <ul>
          <?php get_highest_rated(); ?>
       </ul>
    <?php endif; ?>

    Should I just post that as a "page" from the admin page?

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    ok...here is the easy way to do that I believe.

    get the exec-php plugin http://wordpress.org/extend/plugins/exec-php/

    That lets you use php in the body of your pages.

    Then just drop the php code you are trying to use into the body of a page.

    (That's how I would do it...hopefully that works?)

  7. felixkarlsson
    Member
    Posted 4 years ago #

    Yes it worked fine!

    Now over to another question, how can I put this page in the sidebar, not as a link but the whole thing.

    //Felix Karlsson

  8. MichaelH
    Member
    Posted 4 years ago #

    how can I put this page in the sidebar

    http://wordpress.org/extend/plugins/query-posts/

Topic Closed

This topic has been closed to new replies.

About this Topic