“Duplicate” Posts Appearing Since 3.1.2 Update

are you using global $query_string; before the query? so that the full line looks like: <?php global $query_string; query_posts($query_string . ‘&cat=-10,-12’); ?> alternatively, you could try: <?php query_posts(‘cat=-10,-12&paged=’.get_query_var(‘paged’)); ?>

post categories

You could simply use the category pages WordPress generates using the category.php template, or category-{slug}.php. If you don’t like the /category/categoryname/ url format WP uses, there are a few plugins that remove the category base- I use Yoast SEO plugin for this, which gives you lots of other great features on top. Your other option … Read more

I can’t format text in th edit page (or posts) whats wrong..?

There are a few things that could cause the issue, or I should say a combination of things. With the formatting problems, you might have the “!important css” declaration overriding your CSS from the page/post editor. Here is an example: .post { font-family:Verdana, sans-serif; font-size:14px !important; } Or I want to add a break so … Read more

IP camera jpg stream to post

If you’re adding a post every few seconds, then you’d really spam your database. Adding an attachment (which is some type of post), is not really different, but more appreciated. Take a look at these functions. Just my 2 cents: I’d just display it according to the url, not download, save and add a post … Read more

How to Link to all posts that have the Standard Post Format

Put this in your function.php function akv3_query_format_standard($query) { if (isset($query->query_vars[‘post_format’]) && $query->query_vars[‘post_format’] == ‘post-format-standard’) { if (($post_formats = get_theme_support(‘post-formats’)) && is_array($post_formats[0]) && count($post_formats[0])) { $terms = array(); foreach ($post_formats[0] as $format) { $terms[] = ‘post-format-‘.$format; } $query->is_tax = null; unset($query->query_vars[‘post_format’]); unset($query->query_vars[‘taxonomy’]); unset($query->query_vars[‘term’]); unset($query->query[‘post_format’]); $query->set(‘tax_query’, array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘post_format’, ‘terms’ => $terms, … Read more

Using permalinks, category slugs, and tag slugs

I was messing with my permalinks today for the same reason. And i ended up with a solution that worked great. You have to change your custom permalink structure to: /%category%/%postname%/ In the category base field just put a period mark: . and your permalinks will display in this form: CATEGORY PAGE mysite.com/blog/category-name/ POST PAGE … Read more

Mixing Tweets with Posts

I’ve done this with Twitter Tools. Basically it hooks up the blog to a Twitter feed, and for each new tweet creates a blog post. You can put twitter posts in a separate category (or add tags), and use that to style twitter-posts differently from regular posts, hide the comments field, whatever. Hope this helps … Read more