csowsley
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Page navigation isn't working. Please help.Ahhhh! Got something to work. Reviewed a few more similar posts and discovered a working solution, though I can’t say I understand why it worked. That bothers me a little since I only got it to work but never understood what was wrong in the first place. Anyway, here is the code that fixed the problem in case anyone else has the problem or a good Samaritan feels like shedding a little insight.
<?php $limit = get_option('posts_per_page'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('category_name=General'); query_posts("showposts=3&paged=$paged"); ?>
Forum: Fixing WordPress
In reply to: Post Navigation is broken. Can anyone help?I’ve been mulling over this problem for some time now. I’ve come up with something that may be the error but I’m not sure- the posts are divided into two categories: general, and portfolio, and each category has been given its own page. The navigation in question is on each of these pages:
/showcase and /blog. Is it possible, that some base navigation code written into WP is looking for a /index page when it is called on for next and previous posts? If so, how do I get WP to see the two sub pages I’ve created for navigation?
Can anyone confirm this?Forum: Fixing WordPress
In reply to: Can't get "Showposts=x" to work. Please help.OK, I tried both-
“Showposts” changed to “showposts” returned no change.When I tried the code you offered the site returned an error:
Parse error: syntax error, unexpected $end in /home/csowsley/csowsley.com/now/wp-content/themes/cumulus/index.php on line 74Any ideas?
Forum: Fixing WordPress
In reply to: Post Navigation is broken. Can anyone help?Hi DB,
Thanks for getting into this. I’ve been through those pages. They have been a great help, though I admit a lot of it is still over my head. (again, sorry for the sloppy post. Didn’t know about that little code button till you mentioned it)
This issue seems like something- a little thing most likely, is missing in the code. I can’t see it and I’m at a loss to explain the site behavior.
So, here’s where I am with this one.
I have 7 posts assigned to ‘general’- which should roll on the blog page. That’s enough for pagination and when clicked, the previous and next links do refresh the page. But it will not call previous posts as it is supposed to. It just refreshes the same three recent posts for me. Do you get the same response?Forum: Fixing WordPress
In reply to: Can't get "Showposts=x" to work. Please help.Thank you for taking a look DB. I read that page before- it got me where I’m at now. But still no change on the site. I just changed the code to read:
`<h3>From the Blog</h3><?php query_posts(“Showposts= 2”);
query_posts(‘category_name=General’); global $more; $more=0;?><?php while (have_posts()) : the_post(); global $more; $more=0;?>`
I cleared the cache, reopened the browser and it’s no different. Agh! Any ideas?
(sorry for the long code in the first post. Thanks for the tip on how to make it cleaner)Forum: Fixing WordPress
In reply to: How can I exclude an image from the main page?Thanks. I tried that but it doesn’t keep the ‘share’ links. I came up with a work-around that satisfies the problem for the time being- I put the inserted image below the ‘more’ tag. Not exactly what I wanted, but it does the job.