Forums

Links Page Template Only (5 posts)

  1. richardc020
    Member
    Posted 6 years ago #

    How do I have a page display only the wp_get_links result in my table.wp_links only (i.e. no posts, no Loop, none of all that blog stuff, links <i>only</i>)?

    This page would be like a http://codex.wordpress.org/Creating_an_Archive_Index but for links instead of archive posts.

    I see a links.php Pages Template at wp-content/themes/default/links.php but surfing to http://pathhere/wp-content/themes/default/links.php yields a blank page.

    I've already read through everything under and related to http://codex.wordpress.org/Template_Tags which fails to answer this question and only confuses me more.

    I won't give out my URL because this issue is for private use only, but that won't influence your ability to answer.

  2. OnSeduction
    Member
    Posted 6 years ago #

    What I think you want is create a page (eg links) with a custom template which shows all links (eg with wp_get_links).

  3. moshu
    Member
    Posted 6 years ago #

    Just create a Page template and call it links.php - that as WP template file name.
    And use whichever Links Manager tag you want in it.

  4. richardc020
    Member
    Posted 6 years ago #

    I want a page (not a page template which requires a file upload to /wp-content/themes/default/somefilename.php ) with the "Page Content":

    <div id="content" class="widecolumn"><h2>Links:</h2><ul><code><?php get_links('-1','<li>','',,FALSE,'_rating',,TRUE,,TRUE,); ?></code></ul></div>

    But even following http://codex.wordpress.org/Writing_Code_in_Your_Posts 's direction doesn't stop texturizer from parsing the PHP code into the safe form hence not acting as PHP code.

    How do I get the "Page"'s "Page Content"'s PHP code to work as PHP code (without going the aforemention Page Templates upload route).

  5. OnSeduction
    Member
    Posted 6 years ago #

    There is a plugin somewhere that allows to write php code. I think you should look for that.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags