I got the categories setup and I have a css setting written up which declares a “current” category. If the user is reading a single blog post in that category or browsing in that category how can i set it that the css “current” class is activated for that particular category? can that be done?
Also I see there is a search function within Wordpress and it provides its own search textbox and search button but is there way to use the code I written out:
doh alright. i guess that is how it is supposed to be cause were i used that php code snippet was for my point of sale page. if you see at the bottom it is pulling the newest posts.
You’re asking how to limit the number of posts that appear on an archive page? If so, this is under settings > reading > number of posts to display or something similar. This will also limit the number of posts on the main posts page as well.
ok for example, let’s say i pull an archive and get this page template working and it has some limit to the number of links it will display correct? if so then let’s say for example the limit is at 50 and there are 100 links so it will break up onto two pages but how do i display the link to page two in that format?
You mean like: 1 2 3 4 … and so on. Each being a link to the next page in line of the archives?
That plug in I linked above will produce that. You just need to add the code for it to the archive.php file, upload it and activate it. If I am still not following. I am sorry.
Silver you can set the number of results shown on each page by using what ben suggested in post #49. There is a plug in called CQS (Custom Query String) that allows you to adjust the number of posts per various elements of the page. For example, I have my default setting set at 4, however I set the month option (through CQS) to -1 which displays all results for a month. Since the maximum number of posts per month I do is under 10 - I thought that would be logical.
In post #50, you mention the number of links. Do you mean the numbber of results to display or the number of individual links? For example if a post has 6 links in it do you want it to count as 1 or 6? Are you asking how do you accommodate the number of results per page? At the bottom of most of my pages I have
which shows a previous/next page when appropriate. WP displays this when needed and parses the following pages automagically. Again you can use the plug in Ben mentioned to make it prettier if you wish