• Ok, i am in the middle of creating a new site and i am having a funny problem with my permalinks for subpages. At one point i changed my permalink structure to /%category%/%postname%/ but then i moved the location of some sub pages to be below other sub pages. But for some reason the subpage link was trying to go to the location where the page originally was, not where it currently is. So then i tried changing my permalink structure to the default (postID), but still those sup pages are trying to redirect to the old location of the page with the old permalink structure.

    Here is an example
    go to https://fenderbluesjunioramps.com/
    click on “Mods, Parts, & Extras” in the top menu
    then click “Tubes” in the right menu.
    You will see that it redirects to the homepage, but the address bar on top says “https://fenderbluesjunioramps.com/fender-blues-junior-amp/accessories-parts-mods/tubes/” that is where the page lived when i originally posted i. How come the links does not get updated when the page moves and permalink structure changes?
    thanks!@!!!!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • How do you get that More Pages list on the right?
    It looks like hardcoded with nice permalinks and now the site is set to default permalinks.

    Thread Starter rgordon83

    (@rgordon83)

    that was just an option in the template i chose. i didn’t do it myself.
    So do i need to change my permalink structure to a specific way? thanks!

    I have no idea how was that an option in a theme (I guess you meant theme, not template). Then you need to look at how that option works.

    Thread Starter rgordon83

    (@rgordon83)

    i believe this is the code that calls in the “more pages”: ( i added a dash by the “<a href=” so it doesn’t make a hyperlink..

    <?php 
    
    	if ($aOptions['show_subpages']) :
    
    		global $id;
    		$aSubPages = get_page_children($id, '');
    		if (count($aSubPages) > 0) :
    
    ?>
    					<div id="child_pages">
    						<h3>More Pages</h3>
    						<ul class="icon jump">
    							<?php foreach ($aSubPages as $page) { echo('
    <li><a href="' . $page->guid . '">' . $page->post_title . '</a></li>
    '); } ?>
    						</ul>
    					</div>
    
    <?php endif; ?>
    
    <?php endif; ?>

    To be honest I am not a coder but there is something wrong with that script:
    Take a look at this Page:
    https://fenderbluesjunioramps.com/?page_id=5
    It also has Page links on the right and one is with nice permalink while the other 3 have the default permalink. I have no idea why… ??

    Thread Starter rgordon83

    (@rgordon83)

    i noticed that too. For some reason i think some page links got hard-coded with the “nice” structure, but other didn’t. I’m lost here. maybe someoned else can help…

    i think it has something to do with this line:
    <li><a href="' . $page->guid . '">' . $page->post_title . '</a></li>

    but thanks for your suggestions!

    [mod: put the backticks ONLY around the code, not the whole post :)]

    I too think it has something to do with that line. It’s a groaner to do but you need to look in the database tables for that page (or pointing to it) and see if that one is, somehow, hardcoded

    Or maybe there’s an html tag in the title.

    Thread Starter rgordon83

    (@rgordon83)

    ooh, man. this sounds a little over my head now. I’ll try contacting the theme creator first. thanks for the help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Wierd Permalink issue’ is closed to new replies.