• I would like to create a link to a web apge. I would like the link to be diplayed where my categories diplayed are only that the diplayed categories should/are linked to posts and the ‘forum category link’ should link to a web page (my forum).

    Any advice!

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you are referring to a web-page that is not a WordPress Page, why not add that link via the Write->Link admin panel, then use the template tag, wp_list_bookmarks() (using the include= parameter) to list the link in your sidebar.php (assuming that’s where your categories are displayed).

    Of course you could just hardcode the link into your sidebar.php file.

    Stepping Into Templates
    Stepping Into Template Tags
    Editing Files

    Thread Starter hellows

    (@hellows)

    Thanks. Only that my categories are displayed on top of my web page / like a header. Similar to what you can see on wordpress main page.

    Loke this:
    __________________(link to www)____________________
    HOME | XXXXX | YYYYY | FORUM | DDDDD |

    I would like to add this Forum button which will transfer a user to my forum phpBB (external). Sorry for not making myself clear. When I creating a new category, is a new code for it created in a .php file. Maybe then I could acces it and just change the url so that it does not point to a category with post but to a www.

    Typically the menu you mention is controlled by your theme’s header.php file and uses a combination of ‘hard-coded’ links and the template tag, wp_list_pages().

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link to a page NOT to a post ?’ is closed to new replies.