gerbilk
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Space Between Header & Browser Wont Go Awayyes, install html validator and the firebug plugins for firefox, should be easy to spot what’s wrong
Forum: Fixing WordPress
In reply to: Question for moving site to WordPressflutter or magic fields plugins and the role manager plugin might be a good place to start
Forum: Themes and Templates
In reply to: Space Between Header & Browser Wont Go Awaywhat exactly is wrong, I assume the sidebar?
Forum: Fixing WordPress
In reply to: Different number of posts per page by categoryYou need to look in wp-content/themes/your-theme folder. I had a quick look and there isn’t a category.php set with this theme, you can just save your index.php (which is your posts template) as category.php or category-4.php if your custom category has an id of 4.
this will be the template that is used for this category once you add it to the themes folder.
you need to add
<?php query_posts('posts_per_page=10'); ?>
in the category-id.php page that you have made<?php /* The LOOP starts here. Do this for all posts: */ while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>
which is around line 12. Obviously changing posts_per_page will set the number of posts displayed.
So to sum up, you need to categories; long, with an id of say 4 and short (id say 5). Then you need category-4.php and category-5.php in your themes folder whith the posts per page set accordingly. You can do an awful lot with query_posts, have a look on the codex https://codex.www.ads-software.com/Function_Reference/query_posts
Forum: Fixing WordPress
In reply to: Different number of posts per page by categoryProblem is there are hundreds of small features like this that would be useful to include in the core version of wordpress, it just isn’t possible to include them all. if you can’t find a plugin that does what you need you are going to have to plough into the template code. If you can handle html and css you’ll be able to work with php, I didn’t know any when I started using WordPress and just picked it up as i went along.
If you open your theme folder, find category.php and post the code here I’ll have a look.
Forum: Fixing WordPress
In reply to: Different number of posts per page by categoryyou need to rename category.php to category-id.php where id is the numerical id of the category. After that you need to replace/modify your query.
<?php //The Query query_posts('posts_per_page=5'); //The Loop if ( have_posts() ) : while ( have_posts() ) : the_post(); content and site stuff here endwhile; else: .. endif; //Reset Query wp_reset_query(); ?>
Forum: Fixing WordPress
In reply to: Blog Dipslays No Styles Outside of WebServercheck the css links actually lead somewhere accessible and aren’t just https://localhost/ links
Forum: Fixing WordPress
In reply to: Different number of posts per page by categoryyou can do this with custom category templates
Forum: Fixing WordPress
In reply to: Finding and adding custom fields togetheryou need to add something inside your loop like $applestotal + $apples where $apples is your custom field value, this will add to $applestotal every time the loop runs through
Forum: Fixing WordPress
In reply to: Upgraded to 2.9.2 and now I can’t post body text or see it!try the methods listed here https://www.ads-software.com/support/topic/370579?replies=11
Forum: Fixing WordPress
In reply to: Inserting a blog-list post separator ?<?php if ($post != 'set') { echo ''; } else { echo "<div id='sample'>divider goes here</div>"; $post='set'; } ?>
use this at the top rather than the bottom, it will miss out the first post. code untested but the logic should be sound
Forum: Themes and Templates
In reply to: numbered list has bizzare appearanceinstall firebug for firefox then you can right click and inspect element and view the css that affects it. ol is an ordered list (numbered) ul is unordered(bullets) li is each list item.
to set the size of all you could use
ol li, ul li{fontsize:18px!important;}
!important should over-ride any more specifically targeted css, eg #sidebar ul li {font-size:12} would normally over-ride ul li{font-size:18px;}
Forum: Fixing WordPress
In reply to: How can i link things to my page?have a look in the header.php file, you can always enter the links manually
Forum: Themes and Templates
In reply to: Broken Footer (Browser compatibility?)Hi, I think you have a misplaced
</div>
tag in your single.php file, your footer is inside your subcontent divForum: Fixing WordPress
In reply to: Upgraded to 2.9.2 and now I can’t post body text or see it!try disabling plugins