heriz
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Multiple categories & next_post_linkRight, 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', ' ', TRUE, '213'); ?></div> <div class="prev-link"><?php next_post_link('%link', ' ', 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.
Forum: Fixing WordPress
In reply to: page navigation within category leaves current categoryRead Template_Tags/next_post_link
If I understand you correctly, your code should read
<div class="alignleft"> <?php prev_post_link('%link', '« Previous Entries', TRUE); ?> </div> <div class="alignright"> <?php next_post_link('%link', 'Next Entries »', TRUE); ?> </div>
Forum: Fixing WordPress
In reply to: bug? extra HTML/CSS inside admin areaI 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.
Forum: Fixing WordPress
In reply to: internet explorer vs. firefox & safariHello 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.
Forum: Fixing WordPress
In reply to: next/previous posts link – category childrenThat 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.
Forum: Fixing WordPress
In reply to: next/previous posts link – category childrenYep, 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?
Forum: Fixing WordPress
In reply to: Highlighting current post title in get_posts listahmad – that worked a treat.
thank you so much!
Forum: Fixing WordPress
In reply to: Want to list all posts from 1 category in sidebarI 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?
Forum: Fixing WordPress
In reply to: Highlight Current Category in Navbar on Single Pagejoandiego – 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?
Forum: Fixing WordPress
In reply to: highlighting parent of current_page_parent in 4-level menu listStill no dice on this one.
No-one needed to do this?
Forum: Fixing WordPress
In reply to: More tag ignored on home pageSolved 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…
Forum: Fixing WordPress
In reply to: Show the newest article outside the WordPress frameworkRead this and see if it helps
Forum: Fixing WordPress
In reply to: Changing blog address messes up uploads URLsAHA!
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?
Forum: Fixing WordPress
In reply to: Blogging Ahead of ScheduleNo that’s it. Make sure ‘Edit Timestamp’ is checked.
Forum: Fixing WordPress
In reply to: Changing blog address messes up uploads URLsHello 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