The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] BUG found (6 posts)

  1. Anat
    Posted 11 years ago #

    If the URI for the wordpress address and URI for the blog address are different then '<?php echo get_settings('siteurl'); ?>' tag produces a link for the wordpress address and not for the blog address.

    {I am using the default wordpress theme}
    My wordpress address: http://www.anat.moved.in/blog
    My blog address: http://www.anat.moved.in/
    1) goto http://www.anat.moved.in
    2) from the right sidebar, select any archive month (say january 2005)
    3) the archives for that month are displayed
    4) now look at the right sidebar again and you shall see "You are currently browsing the meri lekhni weblog archives for January, 2005." {here "meri lekhni" is the name of my blog}
    5) the hyperlink, when u click on "meri lekhni", is for "http://www.anat.moved.in/blog"
    6) but the link should have been for "http://www.anat.moved.in" because this the blog address.
    The wordpress directory URI is not the blog address so the "siteurl" php tag should not link to the wordpress URI.

  2. Mark (podz)
    Support Maven
    Posted 11 years ago #

    Did you update your permalinks ?

    I would suggest this is a problem on your site given the number of people that use this install method.

  3. Anat
    Posted 11 years ago #

    yep i did update my permalinks, but does updating permalinks really affect the way '<?php echo get_settings('siteurl'); ?>' tag behaves?

    I assume that '<?php echo get_settings('siteurl'); ?>' tag just picks up the site url from the database and throws it on the webpage.

    the '<?php echo get_settings('siteurl'); ?>' tag should be picking up the blog address from the database and not the wordpress location.

  4. Anat
    Posted 11 years ago #

    okie, new ticket submitted in bug tracker.......

  5. cron
    Posted 11 years ago #

    This is not a bug at all. You are using the wrong code. You should be using <?php echo get_settings('home''); ?> instead of <?php echo get_settings('siteurl'); ?>.

    Cron - Symmetry In My Mind

  6. Anat
    Posted 11 years ago #

    okie that means that its a bug in the default wordpress theme.....
    the theme should have used <?php echo get_settings('home''); ?>

    then its a bug anyway. i shall edit the bug track and change the category to "template"

    Thanks Cron!

Topic Closed

This topic has been closed to new replies.

About this Topic