BloggerCamp.com header image

Posts Tagged ‘The Loop’

Remove Several Categories from the Loop in WordPress

Here is a little trick to to remove categories from the main loop. Yes, you can display these elsewhere; in pages (view custom template), the sidebar, the footer… wherever you want them and I’ll show you how. Complete code <?php $themes = $wpdb->get_var(”SELECT term_id FROM wp_terms WHERE slug = ‘themes’”); $plugins = $wpdb->get_var(”SELECT term_id FROM wp_terms WHERE slug = [...]

Popularity: 100% [?]

How to Remove any Category from the Loop

My last post, Creating Asides in Wordpress 2.3, detailed how to make asides show up in the sidebar with WordPress’s new tagging scheme. Now the next thing that’s necessary, at least seems to be necessary for me, is to remove the Category/Tag “Asides” from the loop, so they only show up in the sidebar. Your main loop [...]

Popularity: 28% [?]

How to Create Asides in WordPress 2.3 or up

A few themes I’ve been testing out have been failing when it comes to creating asides in the sidebar. I wanted to put my asides in the sidebar in WordPress 2.3 and started doing some snooping through the new database structure… mainly the two tables wp_terms and wp_term_taxonomy. You can copy and paste the following code into [...]

Popularity: 32% [?]