[resolved] Page permalink doen't allow backslash! (6 posts)

  1. kosmikkreeper
    Posted 8 years ago #

    Hi guys.

    Basically, I would like to add a page that links to one of my categories. Is this possible? Here's my Blog: http://www.yanikphotoschool.com. I want to add a "tutorials" page in my top menu that links directly to: http://yanikphotoschool.com/category/tutorials/.

    I thought it would be easy enough and just change the permalink but it won't allow you to add a "/".

    Can anyone help?

  2. Evita
    Posted 8 years ago #

    Why will you do that? It works without the backslash.

  3. iridiax
    Posted 8 years ago #

    Do not try to create a page with the same permalink as your tutorials category. Instead, just add a menu link to your tutorials category in your theme's header.php.

  4. kosmikkreeper
    Posted 8 years ago #

    hi iridiax

    Thank you for your suggestion.

    Could you help me out with that? Code is gibberish for me so I wouldn't know how to add it.

    This is the code I have in my body right now:

    <div id="menu">

      <li <?php if(is_home()){echo 'class="current_page_item"';}?>>" title="Home">Home
      <?php wp_list_pages('title_li=&depth=1');?>

    <div id="header">
    <h1>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></h1>
    <h2><?php bloginfo('description');?></h2>

    What would I add and where would I put it?


  5. iridiax
    Posted 8 years ago #

    Put the following after <?php wp_list_pages('title_li=&depth=1');?>

    <li><a href="<?php bloginfo('url'); ?>/category/tutorials/" title="Tutorials">Tutorials</a></li>

  6. kosmikkreeper
    Posted 7 years ago #

    That worked! Woohoo! Thx iridiax! :)

Topic Closed

This topic has been closed to new replies.

About this Topic