ncracraf
Forum Replies Created
-
Forum: Plugins
In reply to: THE_EXCERPT() Function Truncates At First ParagraphI forgot to note that I don’t manually enter any excerpts – I just let the_excerpt() function pull from the post automatically.
Forum: Installing WordPress
In reply to: Pagination 404 Error After 3.0.1 UpgradeHere’s the SQL query to associate every post with a certain category. This has solved my navigation issue; however, I’m still not sure what changed in the 3.0.1 stack to cause the problem. Rather than waste additional time, I’ll likely just set up the script as a cron job so I don’t have to remember to associate each post with the container category myself.
insert into wp_term_relationships
(object_id, term_taxonomy_id)
select ID, '*N*' from wp_posts
where post_type = 'post' and
post_status = 'publish'
Note that you would replace *N* with whatever number correlates to your category ID.
Forum: Installing WordPress
In reply to: Pagination 404 Error After 3.0.1 UpgradeStill researching this issue but have found out the following:
For my custom query, I am outputting the result to a category container. In other words, the category doesn’t have any posts directly associated with it, I am just using it for display purposes.
If I associate posts to this category container and then run the same custom query, I am able to paginate up to the page number (rounded up) that correlates with the number of posts associated with the category container divided by 10. In other words, if I associated 11 posts to the container category, I can go to page 2 but page 3 gives a 404. If I associate 25 posts, I can go to page 3 but page 4 gives me a 404.
As a temporary workaround I’m going to use MySQL and associate every one of my posts to the container category. This means I have to remember to associate all new posts with it, but hopefully at least I can get my custom functionality working until I figure out the root cause.
Again, this issue did not appear in 2.9 so something has changed in 3.0.1.
Forum: Fixing WordPress
In reply to: Best way to preserve three tier content structureI generally scrapped the idea of Tier 2 and 3 posts and have kept the post structure flat. For my most valuable content, I’ve used pages and simply created a hard-coded link to these pages in my navigation menu. For important posts, I’ve just set them to sticky.
Forum: Installing WordPress
In reply to: WordPress Migration – Strange BehaviorThe issue was with caching – although I’m not sure why.
My default browser is Safari. For kicks and giggles I viewed the test migration on Firefox with no issues at all. After emptying the Safari browser cache, all posts, pages and categories appear fine.
Forum: Installing WordPress
In reply to: WordPress Migration – Strange BehaviorNope, no caching plugins – thank you for the input.
Just started over with a fresh install to retrace my steps. Using the default theme and before setting permalinks, all imported posts, pages and categories appear fine. Once I set the permalink custom structure to /%postname%/ is when the same couple of pages and categories produce the error: “The requested document was not found on this server.”
Doing more research on the permalinks mechanics…
Forum: Installing WordPress
In reply to: WordPress Migration – Strange BehaviorYes, re-saving permalinks was one of the first things I did after the trial migration. I’m wondering if WP saves permalink mappings elsewhere besides the database? Perhaps the few posts/pages/categories that don’t work are “stuck” somewhere.
I’m going to keep researching but any additional input is always greatly appreciated.
Thanks!
Forum: Fixing WordPress
In reply to: Best way to preserve three tier content structureThank you very much for the feedback. In this example, each Tier 2 page and its corresponding child Tier 3 pages will belong to the same category in WP. When a visitor clicks on the sidebar navigation for the category, I only want to show the Tier 2 page. The Tier 2 page will then have links within it to each of its Tier 3 pages.
The way WP currently works for me in my dev instance is when I click on the sidebar navigation link for a category, I get all the posts in the category (both Tier 2 and Tier 3). Do you know if my desired behavior is something I can simply modify in the loop?
I’m absolutely all for letting WP do the heavy lifting, just can’t quite figure out this last bit. I’d prefer not to treat the Tier 2 as pages…would like to keep all the content as posts.
Thanks again!