WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Browser address display permalinks and not id (15 posts)

  1. bentonda
    Member
    Posted 1 year ago #

    Hello,

    I am currently setting up a site using wordpress and have created a number of information pages as well as a blog.

    I want to use permalinks on all of my pages which I have been able to get happening except for the blog page.

    So I have pages that have the following come up in the address bar;

    http://www.bentonphotographic.com.au/berlin/
    http://www.bentonphotographic.com.au/berlin/wedding/
    http://www.bentonphotographic.com.au/berlin/portrait/

    but the blog page comes up like this;

    http://www.bentonphotographic.com.au/berlin/?p=0

    I would like it to look like this

    http://www.bentonphotographic.com.au/berlin/blog

    Under the heading of Settings > Reading I have toggled the "A static page" ON and set the following

    Front page: home-page
    Posts page:-Select-

    For the Posts Page drop down I was hoping that my blog page would appear in the drop down list here, but it has not.

    Would anyone know how I can make the?p=0 be replaced with the word blog?

    Thank You
    Ben

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Have you set up any custom permalinks? If so, was the .htaccess file successfully created/amended?

  3. bentonda
    Member
    Posted 1 year ago #

    I had not done that but I have now and it is still suffering the same problem.

    I changed from;
    Options +FollowSymlinks
    RewriteEngine On

    RewriteRule ^home.htm$ benton-photographic.php
    RewriteRule ^portrait_([0-9][0-9]).htm$ portrait.php?id=$1
    RewriteRule ^wedding_([0-9][0-9]).htm$ wedding.php?id=$1
    RewriteRule ^gallery_([0-9][0-9]).htm$ gallery.php?id=$1
    RewriteRule ^event_([0-9][0-9]).htm$ event.php?id=$1
    RewriteRule ^industrial_([0-9][0-9]).htm$ industrial.php?id=$1
    RewriteRule ^contact_([0-9][0-9]).htm$ contact.php?id=$1
    RewriteRule ^wed_([0-9][0-9]).htm$ wedding-page.php?page_id=45

    to:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /berlin/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /berlin/index.php [L]
    </IfModule>

    Regards
    Ben

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    The site at http://www.bentonphotographic.com.au/berlin/ is working perfectly for me - custom permalinks and all.

  5. bentonda
    Member
    Posted 1 year ago #

    But when you navigate to my blog page the php id thing gets displayed in the address bar, this is what I am trying to change to the word blog
    like this;

    http://www.bentonphotographic.com.au/berlin/blog

    If you try to navigate there you get the following message;

    This is somewhat embarrassing, isn’t it?

    Cheers
    Ben

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    Try checking your custom menu. I think you hardcoded that Blog link.

  7. bentonda
    Member
    Posted 1 year ago #

    Yes you are right under menus i have a menu entry named blog and in the URL section I have the following;

    http://www.bentonphotographic.com.au/berlin/?p=0

    On the wp-admin/nav-menus.php screen under heading pages there is no page named blog. When I have done a search on the page named blog nothing comes up either.

    So I did create a custom link item here and called it blog with the hard wired entry as described above.

    Is there something I can do to make this dynamic?

    Ben

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    What items do you have in your custom menu in Appearance -> Menus?

  9. bentonda
    Member
    Posted 1 year ago #

    I have created a menu called my_menu and I have three menu items with the word page in the top right hand corner;

    Home
    Wedding
    Portrait

    And then I have one menu item with the word custom in the top right hand corner;

    Blog

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    Try deleting that menu and then re-creating it.

  11. bentonda
    Member
    Posted 1 year ago #

    The whole menu named my_menu?

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    Yes

  13. bentonda
    Member
    Posted 1 year ago #

    Okay I have had a quick go at that and I only created menus items for the pages, and now I have no way of navigating to the blog page, without creating a custom link.

    So how would I navigate to the blog page?

    http://www.bentonphotographic.com.au/berlin/

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    If you set the main posts page (ie Blog) up using the instructions in creating a static front page, it will be listed in the Pages list within Appearance -> Menus.

  15. bentonda
    Member
    Posted 1 year ago #

    Thank You esmi the instruction in the document creating a static front page proved to be very helpful.

    Cheers
    Ben

Topic Closed

This topic has been closed to new replies.

About this Topic