Forum Replies Created

Viewing 15 replies - 46 through 60 (of 70 total)
  • Thread Starter heriz

    (@heriz)

    Right, after testing I’ve found that it is purely having multiple categories that’s the problem.

    That means that the exclude_categories in next_post_link doesn’t seem to be working.

    Just to make sure, here’s what I have:

    <div class="next-link"><?php previous_post_link('%link', '&nbsp;', TRUE, '213'); ?></div>
    <div class="prev-link"><?php next_post_link('%link', '&nbsp;', TRUE, '213'); ?></div>

    Where 213 is the parent of the ‘Poster’ category (‘Sort’ – the category I will use to sort all the post types).

    Anyway I’ll press on. I may have to try and use tags instead.

    heriz

    (@heriz)

    Read Template_Tags/next_post_link

    If I understand you correctly, your code should read

    <div class="alignleft">
    <?php prev_post_link('%link', '&laquo; Previous Entries', TRUE); ?>
    </div>
    <div class="alignright">
    <?php next_post_link('%link', 'Next Entries &raquo;', TRUE); ?>
    </div>
    heriz

    (@heriz)

    I had this too – I’m trying to remember what it was.

    Do you have a ‘charset’ specifying UTF-8 on the page? If so, try removing it.

    If not, I’ll dig around and try to remember what I did to solve it.

    heriz

    (@heriz)

    Hello Boris.

    You need to identify which elements aren’t being rendered properly in IE. Major problems are usually to do with floating elements, positions, margins and padding, I’ve found.

    Create a separate .css file, called ‘ie.css’ or whatever. You may even need to create another one for different IE versions. In the header, put the code:

    <!--[if IE 6]>
    <link rel="stylesheet" href="INCLUDE IE6 STYLESHEET PATH HERE" type="text/css" media="all" />
    <![endif]-->
    
    <!--[if IE 7]>
    <link rel="stylesheet" href="INCLUDE IE 7 STYLESHEET PATH HERE" type="text/css" media="all" />
    <![endif]-->

    Then add into your CSS files the adjustments to margins etc for each element. You don’t need to replicate the whole main CSS file – just include the ids and classes that require adjusting.

    This way IE reads these adjustments and displays accordingly, while no other browsers are affected.

    As for the other question, I’ve no idea I’m afraid.

    heriz

    (@heriz)

    That last bit seems to be either a browser cache issue, or something to do with the database. I’ve still not worked it out, but it’s not related to the previous problem.

    heriz

    (@heriz)

    Yep, I’m in desperate need of this, too.

    Maybe something needs to be changed in wp-includes/link-template.php?

    Nothing I’ve tried does anything, though.

    I’m also having a strange issue with listed subcategory posts in the sidebar. To begin with, all subcategory post titles are listed – but when you get so far down the list, the remaining title links disappear, and the only thing you can do is click on the next-post link which takes you to the first post in the next subcategory.

    I’m guessing this could be something to do with the date stamps, or the post count… but I don’t know.

    Here’s what I have in the sidebar section that lists the subcategory titles:

    <?php
    
    	$IDOutsideLoop = $post->ID;
    	global $post;
    
    	 $myposts = get_posts('showposts=100&category=175');
    	 foreach($myposts as $post) :
    	 ?>
    		<li<?php if(is_single() && $IDOutsideLoop == $post->ID) print ' class="current-post-item"'?>><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    
    <?php endforeach; ?>

    Any ideas anyone?

    Thread Starter heriz

    (@heriz)

    ahmad – that worked a treat.

    thank you so much!

    I don’t know whether it helped him but it certainly helped me. Thank you!

    Do you (or anyone else) happen to know if it’s possible to dynamically highlight the given title of the post you’re on in that sidebar list?

    joandiego – wonderful! Thanks so much for that.

    The only problem I have now is the fact that the page_parent of a category page is the default posts page.

    In my stylesheet I have:

    #nav ul li.current_page_item a, #nav ul li.current_page_parent a, #nav ul li.current-cat a {
    		color: #AA0000;
    	}

    The parent menu item of a child page is still highlighted when on that child page, and the menu item of a category is highlighted when on a category page.

    But because, when on a category page, the default posts page is marked with ‘current_page_parent’, it means the default posts page menu item is highlighted AS WELL AS the category, when on a category page.

    Is there any way round this? So that I can still highlight parent menu items to a depth of 2 on both static pages and category pages, without the posts page highlighting when on a category page?

    Thread Starter heriz

    (@heriz)

    Still no dice on this one.

    No-one needed to do this?

    Thread Starter heriz

    (@heriz)

    Solved it.

    The

    <?php global $more;
    $more = 0; ?>

    code needs to be placed under the “entry” div tag in the second loop.

    Sorry to keep starting support questions then solving them myself! Hopefully this will help someone…

    Thread Starter heriz

    (@heriz)

    AHA!

    After a few Google searches I found this help page on My Digital Life. Down the page it gives some SQL UPDATE commands which you must run in the SQL section of your mySQL panel once you’ve moved your site.

    I’ve just performed the operation and everything is fixed.

    Maybe this page should be linked in the Codex page rather than the current one?

    No that’s it. Make sure ‘Edit Timestamp’ is checked.

    Thread Starter heriz

    (@heriz)

    Hello hello,

    Thought I’d update this post.

    I’ve now moved the whole WordPress site to my root directory.

    I knew I’d have the same problem again, but I was following the Codex which links to this (very useful but apparently unrelated) site when discussing problems with broken image links, and thought it’d give me the answer. But there’s nothing in it as far as I can see that refers to the problem of broken image links – unless the reference is there as a subtle way of saying ‘edit the whole lot on your locally-held database, then update’.

    I’ve gone into my SQL database and tentatively tried changing the paths, but in the media library, nothing changes. I have to change the URL in each post in the control panel before images start reappearing.

    I’m up for manually changing the paths to each image, but I want to know that I’m doing it correctly and in the correct place before I blitz the whole thing.

    I’ve done many searches and I think answers would be helpful to others too… any pointers will be much, much appreciated.

    Thanks

Viewing 15 replies - 46 through 60 (of 70 total)