webmasterobservatoriobioetica
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: insert a widget into a slideshowOk, so…
Do you know a plugin that has this functionality? Or, alternatively, can you tell me what php code must be entered in my theme to do this function?
Thanks!
Forum: Fixing WordPress
In reply to: insert a widget into a slideshowThanks, but, I think than you don’t understand me
If I have a Custom sidebar… and I drop the widgets inside… I see a list of widget no a carousel of widget. I need a carousel of widgets.
I need to see a slideshow of images, but with widgets. A carousel of widgets, A “widgetshow”
You first see a widget, then another, then another … similar to a slideshow of images, but with widgets…
How I make sure it is formatted in a way that is compatible with whatever slideshow script you are using?
Thanks
Forum: Hacks
In reply to: Rand order inst work ?Ok, sorry,
I changed this in the wp-includes/query.php line 2283 (WordPress V3.5) and now it’s work correctly… it’s correct?
Change this
if ( !empty( $this->tax_query->queries ) || !empty( $this->meta_query->queries ) ) { $groupby = "{$wpdb->posts}.ID"; }
for this:
if ( !empty( $this->tax_query->queries ) || !empty( $this->meta_query->queries ) ) { //$groupby = "{$wpdb->posts}.ID"; }
Thanks
Forum: Hacks
In reply to: Custom query filtered by category and custom fieldHi, I have a similar problem.
I’m making a page, and I need to order some posts belonging to two specific categories, for this, I looked around, and I have to use the category__and. So much perfect.
The problem is that if I use the post category__and not sorted from newest to oldest, it is sorted by date of creation, the first post created the first and last end.
code used:
CATEGORY__IN = WORK:
if( trim( $pagination ) == 'true' ) { $paged = mysite_get_page_query(); $blog_query->query(array( 'post__in' => $post_in, 'category__in' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'posts_per_page' => $showposts, 'paged' => $paged, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); } else { $blog_query->query(array( 'post__in' => $post_in, 'category__in' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'showposts' => $showposts, 'nopaging' => 0, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); }
WITH CATEGORY__AND = NOT WORK
if( trim( $pagination ) == 'true' ) { $paged = mysite_get_page_query(); $blog_query->query(array( 'post__in' => $post_in, 'category__and' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'posts_per_page' => $showposts, 'paged' => $paged, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); } else { $blog_query->query(array( 'post__in' => $post_in, 'category__and' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'showposts' => $showposts, 'nopaging' => 0, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); }
If I use category__in, all right, if I use category__and, not working ??
Can you help me?? Thanks
Forum: Fixing WordPress
In reply to: Category__and with array in single pageHi, I have a similar problem.
I’m making a page, and I need to order some posts belonging to two specific categories, for this, I looked around, and I have to use the category__and. So much perfect.
The problem is that if I use the post category__and not sorted from newest to oldest, it is sorted by date of creation, the first post created the first and last end.
code used:
CATEGORY__IN = WORK:
if( trim( $pagination ) == 'true' ) { $paged = mysite_get_page_query(); $blog_query->query(array( 'post__in' => $post_in, 'category__in' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'posts_per_page' => $showposts, 'paged' => $paged, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); } else { $blog_query->query(array( 'post__in' => $post_in, 'category__in' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'showposts' => $showposts, 'nopaging' => 0, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); }
WITH CATEGORY__AND = NOT WORK
if( trim( $pagination ) == 'true' ) { $paged = mysite_get_page_query(); $blog_query->query(array( 'post__in' => $post_in, 'category__and' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'posts_per_page' => $showposts, 'paged' => $paged, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); } else { $blog_query->query(array( 'post__in' => $post_in, 'category__and' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'showposts' => $showposts, 'nopaging' => 0, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); }
If I use category__in, all right, if I use category__and, not working ??
Can you help me?? Thanks
Forum: Hacks
In reply to: Rand order inst work ?Hi, I have a similar problem.
I’m making a page, and I need to order some posts belonging to two specific categories, for this, I looked around, and I have to use the category__and. So much perfect.
The problem is that if I use the post category__and not sorted from newest to oldest, it is sorted by date of creation, the first post created the first and last end.
code used:
CATEGORY__IN = WORK:
if( trim( $pagination ) == 'true' ) { $paged = mysite_get_page_query(); $blog_query->query(array( 'post__in' => $post_in, 'category__in' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'posts_per_page' => $showposts, 'paged' => $paged, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); } else { $blog_query->query(array( 'post__in' => $post_in, 'category__in' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'showposts' => $showposts, 'nopaging' => 0, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); }
WITH CATEGORY__AND = NOT WORK
if( trim( $pagination ) == 'true' ) { $paged = mysite_get_page_query(); $blog_query->query(array( 'post__in' => $post_in, 'category__and' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'posts_per_page' => $showposts, 'paged' => $paged, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); } else { $blog_query->query(array( 'post__in' => $post_in, 'category__and' => $category_in, 'tag__in' => $tag_in, 'post_type' => 'post', 'showposts' => $showposts, 'nopaging' => 0, 'offset' => $offset, 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', )); }
If I use category__in, all right, if I use category__and, not working ??
Can you help me?? Thanks
Forum: Fixing WordPress
In reply to: orderby and order with category__andPlease, The problem I have is meant? It is a big problem of WordPress or something I get wrong?
I need order the post by date, the oldest in the end and the new at the beginning. But with the category__and no work the syntax “orderby”.
So, what other syntax I set to order my posts?
Thanks
Forum: Fixing WordPress
In reply to: orderby and order with category__andin the forum, I’m see this, I think that I write correct, but.. don’t work, please, someone can helpme??
At 2.3 this combination will return posts belong to both Category 1 AND 3, showing just two (2) posts, in descending order by the title: query_posts( array( 'category__and' => array(1,3), 'posts_per_page' => 2, 'orderby' => 'title', 'order' => 'DESC' ) );