Joshua Sigar
Forum Replies Created
-
Forum: Themes and Templates
In reply to: help!.. how do you make that big tag up there..
How big is big? I mean, which one above is exactly the big tag?Is below the answer?
http://wordpress.org/docs/installation/different-address/p.s. if you post code, put it between the backticks (the key above the TAB key on the keyboard)
Forum: Fixing WordPress
In reply to: Warning: array_keys(): The first argument should be an array in…what are you trying to sort? http://pastebin.com
Forum: Fixing WordPress
In reply to: Registering at the blogYou could set “Only registered users can leave a comment.”
Forum: Fixing WordPress
In reply to: delete all postsYou might want to clear *post2cat table as well
Forum: Themes and Templates
In reply to: how do i use multiple stylesheets in a theme?Just hardcode them in the head section
<style type="text/css" media="screen">
@import url( "<?php echo TEMPLATEPATH ?>/images.css" );
...
</style>Forum: Fixing WordPress
In reply to: listing posts that are only listed in two categoriesOkay, here it is. Efficiency NOT guaranteed.
<?php $my_posts = $wpdb->get_results( "
SELECT * FROM
$wpdb->posts p1,
$wpdb->posts p2,
$wpdb->post2cat c1,
$wpdb->post2cat c2
WHERE
p1.ID = p2.ID AND
p1.ID = c1.post_ID AND
p2.ID = c2.post_ID AND
c1.category_id = 6 AND
c2.category_id = 5
" );
?><?php if( $my_posts ) : foreach( $my_posts as $post ) : setup_postdata( $post ); ?>
<?php the_title(); ?>
<?php endforeach; endif; ?>Forum: Fixing WordPress
In reply to: listing posts that are only listed in two categoriesYou should have something like the following
rel_id post_id category_id
11 8 6
12 8 5It says that Post with id 8 is associated with category id 6 and 5
Forum: Plugins
In reply to: PHP plugin mod.Okay, try this one
$cat_counts = $wpdb->get_results("SELECT cat_ID,
COUNT($wpdb->post2cat.post_id) AS cat_count
FROM $wpdb->categories
INNER JOIN $wpdb->post2cat ON (cat_ID = category_id)
INNER JOIN $wpdb->posts ON (ID = post_id)
WHERE post_status = 'publish'
GROUP BY category_id
HAVING cat_count > 50");Forum: Themes and Templates
In reply to: Search results not using archive.phpIt will work as how it is right now, unless you complain enough (read: submit a bug) that search view has to load archive.php before index.php
It was just misdocumentation, by the way. I suppose, because we wrote the docs after the software built.
Forum: Plugins
In reply to: PHP plugin mod.Okay, at your own risk, replace the following section of code …
$cat_counts = $wpdb->get_results("SELECT cat_ID,
COUNT($wpdb->post2cat.post_id) AS cat_count
FROM $wpdb->categories
INNER JOIN $wpdb->post2cat ON (cat_ID = category_id)
INNER JOIN $wpdb->posts ON (ID = post_id)
WHERE post_status = 'publish'
GROUP BY category_id");..with the following…
$cat_counts = $wpdb->get_results("SELECT cat_ID,
COUNT($wpdb->post2cat.post_id) AS cat_count
FROM $wpdb->categories
INNER JOIN $wpdb->post2cat ON (cat_ID = category_id)
INNER JOIN $wpdb->posts ON (ID = post_id)
WHERE post_status = 'publish' AND cat_count > 50
GROUP BY category_id");Forum: Themes and Templates
In reply to: Search results not using archive.phpCodex is wrong. Search view will try to load search.php and then index.php.
I just updated the codex, by the way.
Depending on the server setting, a file from external site could be included and …
Forum: Themes and Templates
In reply to: missing stylesheetWhere do you download the themes from? (link, please)
Are those themes WP 1.5 compatible?
Are you on wp 1.5?Forum: Fixing WordPress
In reply to: Missing Single Entry PageWill it work properly with permalink disabled?
Will it work with Default Theme?Forum: Fixing WordPress
In reply to: how do I list pages by Category ID in the sidebar?Pages “don’t” have a category id. Read the following. http://codex.wordpress.org/Template_Tags/wp_list_pages