baalam
Forum Replies Created
-
You wont be ban from google
Go under admin to Options/Global Translator and check the box “Enable translation engines ban prevention “Cheers
Forum: Fixing WordPress
In reply to: Arrange Post Order?Hi nzde
Here’s mine
My category number was 5 so I created a new template called category-5.php so you have to call it category-4.php and this is the complete code with your variables<?php get_header(); ?><?php get_sidebar(); ?> <div id="wrapper"> <div class="mission"> <?php if((function_exists('ls_getinfo')) && (ls_getinfo('isref'))) { ?> <h2><?php ls_getinfo('terms'); ?></h2> p>You came here from <?php ls_getinfo(‘referrer’); ?> searching for <i><?php ls_getinfo(‘terms’); ?></i>. These posts might be of interest:</p> <ul> <?php ls_related(5, 10, '<li>', '</li>', '', '', false, false); ?> </ul> <?php } else { ?> <?php } ?></div> <div id="content"> <?php $querystr = " SELECT * FROM $wpdb->posts LEFT JOIN $wpdb->postmeta ON($wpdb->posts.ID = $wpdb->postmeta.post_id) LEFT JOIN $wpdb->term_relationships ON($wpdb->posts.ID = $wpdb->term_relationships.object_id) LEFT JOIN $wpdb->term_taxonomy ON($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id) WHERE $wpdb->term_taxonomy.term_id = 4 AND $wpdb->term_taxonomy.taxonomy = 'category' AND $wpdb->posts.post_status = 'publish' AND $wpdb->postmeta.meta_key = 'Event_date' ORDER BY $wpdb->postmeta.meta_value ASC "; $pageposts = $wpdb->get_results($querystr, OBJECT); ?> <?php if ($pageposts): ?> <?php foreach ($pageposts as $post): ?> <?php setup_postdata($post); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> </div><hr /> <?php endforeach; ?> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php endif; ?> </div> </div> <?php get_footer(); ?>Its a shame cuz its such a sweet plugin
Funny thing is that when I seach my site under google the Russian version of it come on the upper results
=(
Forum: Fixing WordPress
In reply to: Arrange Post Order?Thanks a lot iridiax!
Its working now … the only problem is that its showing the posts from the category 5 under every category!
Seems like is not respecting the taxonomy id and overwrites the other categories
Any suggestions?
Forum: Fixing WordPress
In reply to: Arrange Post Order?I’m trying to do the same as allshookup but somehow the code doesnt work to me… if I apply it like iridiax gave it all my posts become the same one and just repeat it self…
This is the code Im using:
<?php $querystr = " SELECT wposts.* LEFT JOIN $wpdb->postmeta ON($wpdb->posts.ID = $wpdb->postmeta.post_id) LEFT JOIN $wpdb->term_relationships ON($wpdb->posts.ID = $wpdb->term_relationships.object_id) LEFT JOIN $wpdb->term_taxonomy ON($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id) WHERE $wpdb->term_taxonomy.term_id = 5 FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = 'Eventos' AND wposts.post_status = 'publish' AND wposts.post_type = 'post' AND wposts.post_date < NOW() ORDER BY $wpdb->postmeta.meta_value ASC "; $pageposts = $wpdb->get_results($querystr, OBJECT); ?> <?php if ($pageposts): ?> <?php foreach ($pageposts as $post): ?> <?php setup_postdata($post); ?> <?php endforeach; ?> <?php else : ?> <?php endif; ?>Anybody knows what I’m doing wrong?
Forum: Fixing WordPress
In reply to: Subdomain not workingAs I said this wasn’t the problem like Samboll said… it was my stupidity since I didn’t set up the .htaccess to be writable
This post can be erase
Forum: Fixing WordPress
In reply to: Arrange Post Order?I have also a special need regarding posts order under certain category… Ive been looking around and I cant find a plug in or a trick to do it.
On my WP I have a category called “Events” where people send me flyers and info about their events so I need to have them posted on a specific order… by the date of the event not the date I posted since some people send me a their info way before the event comes.
I need to customize the order of each post something like you can do with the pages order…
Thanks in advance for your help
Forum: Themes and Templates
In reply to: Template moves all around!!I figured it out, it was a JavaScript I had
Thanks anyways
this post can be eraseForum: Fixing WordPress
In reply to: Subdomain not workingI don’t think thats my problem since I have already my wp on a sub folder…
Forum: Themes and Templates
In reply to: Template moves all around!!Any CSS expert around?
Forum: Themes and Templates
In reply to: Template moves all around!!Up!