How do you make the number of home page posts different than search results?

Hello,

Settings>>reading set it to 4.

Then the front page shows the four latest blog posts.

But search results also show 4.

How can you make the home page show the 4 latest, but the search results show 10 different results?

They seem inextricably linked to each other.

10 most recent posts is way too many for home page.

4 search results returned for a keyword is too few.

I’m looking to de-couple these functions, so each can be set independently of the other’s numerical value.

Any ideas on how to do this?

This is mostly controlled by your theme. It depends how they obtain the posts.

Really this topic would be better suited in the PHP section (since it’ll require some PHP to pull off).

It sounds like with your theme they use that number for both. The easiest way (depending on the theme) would be to go into one of them, find where that number is pulled, and replace that with a different number.

If you want to get some more detailed help, post some specifics (such as the name and source of your theme) in a topic in the PHP section and we’ll be able to give you some more specific help.

Good luck.

I have a plug in installed called custom query string. Unfortunately the plugin isn’t listed in the codex or the author’s page. You may be able to contact him to see what’s up. His link: Matt Read, Notes

It’s Wordpress 3.1 with the official Wordpress “Twenty Ten” theme.

There is a setting to adjust this in the dashboard. But it sets the search results and frontpage website loop to the same amount.

Do you have any clues as to what the php filenames would be for this?

Should I be looking to adjust this at the “theme level” or at the cord Wordpress installation level?

Some people say “Don’t adjust the core, because if they update it blah blah blah”.

That argument doesn’t work for me in this case. I need this to work and work now. I’m not looking for “sustainable agriculture”. I’m perfectly happy to chop this code tree down for this particular aspect.

So where do I cut? What’s it called? I’ll take a chainsaw to it if need be, metaphorically speaking.

You would need to edit WP’s core files which I don’t recommend doing. I believe somewhere you mentioned you didn’t know PHP well, nor cared to. I would say you definately need a decent base prior to edit these files. You could end up messing up your install… I found a link for you, and posted it in your other thread, but here you go again.