microtag
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Query SQL: Get display_name from user_idWorks Great!
Thanks a lot.Forum: Hacks
In reply to: Problem with orderby and Taxonomyhere is full description of the functions you are using.
Thanks for the link! I’ve resolved
Forum: Hacks
In reply to: Problem with orderby and Taxonomysorry, I’m wrong.
Orderby ‘name’, ‘id’ ect… do not works
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Problem filtering by categoryI transferred the files from localhost and I forgot JS … but after adding the JS does not work.
ThanksForum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Problem filtering by categoryIf I click on uno or due not load new items.
code:
<ul id="alm-filter-nav"> <li><a href="#" data-repeater="default" data-post-type="post" data-category="uno" data-posts-per-page="2" data-scroll="true" data-button-label="Load More uno">UNO</a></li> <li><a href="#" data-repeater="default" data_post-type="post" data-category="due" data-posts-per-page="2" data-scroll="true" data-button-label="Load More due">DUE</a></li> </ul> <?php echo do_shortcode('[ajax_load_more repeater="default" post_type="post" scroll="false" posts_per_page="2" button_label="Load more"]'); ?>
Forum: Themes and Templates
In reply to: [WP-Forge] PaginationThanks a lot!
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Cant see tickets in BEUpgrade to 1.9.3. and works fine.
Thanks
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Cant see tickets in BEHi,
I’ve same problem…Forum: Plugins
In reply to: [Secure Custom Fields] Upgrading from 4.1.2 to 4.1.3 metaboxes disappeared!Resolved: after update was disabled in screen option.
Forum: Plugins
In reply to: [Secure Custom Fields] Upgrading from 4.1.2 to 4.1.3 metaboxes disappeared!Same problem after last update.
I’ve tried cleraing browser cache but do not works.Forum: Plugins
In reply to: [W3 Total Cache] Warning : The directory w3tc can be deleted.Hello, after upgrade to last W3TC version, I’ve same warning.
Forum: Fixing WordPress
In reply to: Order record by post meta valueHi,
now $wpdb global is declared, but shows only one post instead of 12 and the only post showing is wrong.REQUEST:SELECT SQL_CALC_FOUND_ROWS vipwp_posts.ID FROM vipwp_posts INNER JOIN vipwp_postmeta ON (vipwp_posts.ID = vipwp_postmeta.post_id) WHERE 1=1 AND YEAR(vipwp_posts.post_date)=’2012′ AND WEEK(
vipwp_posts
.post_date
, 1 ) = ’43’ AND vipwp_posts.post_type = ‘post’ AND (vipwp_posts.post_status = ‘publish’ OR vipwp_posts.post_status = ‘private’) AND (vipwp_postmeta.meta_key = ‘tweets_count’ ) AND vipwp_posts.id = (SELECT id FROM vipwp_posts p2, vipwp_postmeta pm where pm.post_id = p2.ID AND pm.meta_key = ‘tweets_count’ AND p2.post_status = ‘publish’ AND p2.post_author = vipwp_posts.post_author ORDER BY pm.meta_value ASC Limit 0,1) GROUP BY vipwp_posts.ID ORDER BY vipwp_postmeta.meta_value DESC LIMIT 0, 12Forum: Fixing WordPress
In reply to: Order record by post meta valueSorry.
REQUEST:SELECT SQL_CALC_FOUND_ROWS vipwp_posts.ID FROM vipwp_posts INNER JOIN vipwp_postmeta ON (vipwp_posts.ID = vipwp_postmeta.post_id) WHERE 1=1 AND YEAR(vipwp_posts.post_date)='2012' AND WEEK(
vipwp_posts.
post_date, 1 ) = '42' AND vipwp_posts.post_type = 'post' AND (vipwp_posts.post_status = 'publish' OR vipwp_posts.post_status = 'private') AND (vipwp_postmeta.meta_key = 'key_count' ) AND vipwp_posts.id = (SELECT id FROM posts p2, postmeta pm where pm.post_id = p2.ID AND pm.meta_key = 'key_count' AND p2.post_status = 'publish' AND p2.post_author = posts.post_author ORDER BY pm.meta_value ASC Limit 0,1) GROUP BY vipwp_posts.ID ORDER BY vipwp_postmeta.meta_value DESC LIMIT 0, 12
Forum: Fixing WordPress
In reply to: Order record by post meta valueQuery:
<?php //Displaying latest post per author on front page function filter_where($where = '') { global $wp_query; print_r('<p>REQUEST:');print_r($wp_query->request);print_r('</p>'); $where .= " AND vipwp_posts.id = (SELECT id FROM {$wpdb->prefix}posts p2, {$wpdb->prefix}postmeta pm where pm.post_id = p2.ID AND pm.meta_key = 'key_count' AND p2.post_status = 'publish' AND p2.post_author = {$wpdb->prefix}posts.post_author ORDER BY pm.meta_value ASC Limit 0,1)"; return $where; } add_filter('posts_where', 'filter_where'); ?> <?php $week = date('W'); $year = date('Y'); ?> <?php if (have_posts()) { ?> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'posts_per_page' => 12, 'year' => $year, 'w' => $week, 'meta_key' => 'key_count', 'orderby' => 'meta_value', 'paged'=>$paged ); query_posts($args); while (have_posts()) { the_post(); ?>
Forum: Fixing WordPress
In reply to: Order record by post meta valuejust no records:
REQUEST: