andy999
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: get_setting in wp_customiseAnyone?
Yeah, I had a little look through and realised I could probably change all the paths, but it was too much hassle, so instead I’ll just use TGM activation.
Anyway, thanks for the reply, keep up the good work!
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Can the posts be made responsiveUse your own css I’d say.
Forum: Plugins
In reply to: [Inline Comments] Plugin kills my jsKevin, it was my mistake, sorry!
My jQuery functions weren’t written in noconflict mode, I was using $ instead of jQuery shortcut.
Once that was fixed it was fine, a silly mistake!
PS. Your plugin is fantastic and I’d be interested in using it in a commercial theme that I’d be building at some point, would you be able to offer me a developer license at a reasonable price?
Forum: Plugins
In reply to: [Inline Comments] Plugin kills my jsLatest version of inline comments.
It doesn’t stop any plugins working, it just stops js/jquery working at all, site wide.
I removed the second ‘add_action’ and js works properly but the plugin doesn’t.
Would this be easy to implement, ie. is there an interface that’d accept my meta_key or will I need to do some custom coding?
Forum: Plugins
In reply to: [WP-PostRatings] Show number of points on author page?I found this little snippet kicking around but it doesn’t seem to output anything when I put it on the author page, what am I doing wrong?
function ac_author_score() { $userID = get_the_author_meta( 'ID' ); $query = array ( 'author' => $userID, 'posts_per_page' => -1 ); $queryObject = new WP_Query($query); while( $queryObject->have_posts() ) : $queryObject->the_post(); global $post; $postID = $post->ID; $score = $score + intval( get_post_meta( 'ratings_score', $postID, true ) ); endwhile; wp_reset_query(); if ( $score > 0 ) $score = '+' . $score; return $score; } ?>
Forum: Plugins
In reply to: [WP-PostRatings] Great plugin but PLEASE use the images as background imagesThanks Lester, you can mark this as resolved.
Forum: Plugins
In reply to: [WP-PostRatings] Great plugin but PLEASE use the images as background imagesIf I were to hack the plugin’s php files to do this myself, to change say the up/down thumbs to plain old div box’s with classes, where should I look?
Forum: Plugins
In reply to: [WordPress Popular Posts] WordPress Popular posts breaks my site entirelyUpdate – I looked through the documentation and I decided to check some stuff on the server. I have php version 5.3.25 and GD library installed, so I’m at a complete loss as to why this doesn’t work on my server but does on my localhost.
EDIT:- I downgraded to version 2.3.2 of WPP and that works on the live server.
So I assume it’s an issue with the newer version of wordpress.Forum: Plugins
In reply to: [Simple Share Buttons Adder] Share Buttons Not Sharing the Specific Post URLYup, same issue for me, it’d be perfect if it weren’t for that.
Forum: Plugins
In reply to: [I Recommend This] Use recommended posts within wp_query?<?php // Create a new filtering function that will add our where clause to the query function filter_where( $where = '' ) { // posts in the last 30 days $where .= " AND post_date > '" . date('Y-m-d', strtotime('-380 days')) . "'"; return $where; } add_filter( 'posts_where', 'filter_where' ); $featuredPosts = new WP_Query( array( 'posts_per_page' => 33, 'meta_key'=>'_recommended', 'orderby' => 'meta_value_num', 'order' => DESC ) ); remove_filter( 'posts_where', 'filter_where' ); ?> <?php if ( $featuredPosts->have_posts() ) : ?> <?php while ( $featuredPosts->have_posts() ) : $featuredPosts->the_post(); ?> <article <?php post_class('item-post block'); ?> id="post-<?php the_ID(); ?>"> <?php the_title(); ?> </article> <!-- end div post --> <?php endwhile; wp_reset_query(); ?> <?php endif; ?>
Enjoy!
Forum: Plugins
In reply to: [WordPress Popular Posts] Top Post in categoryI took a look WPP files and was able to generate date, author etc with shortcodes, but I can’t figure out how to get the featured image!
EDIT:- Never mind, this is how I done it.
WPP is seriously the best plugin.
<?php if ( function_exists('wpp_get_mostpopular') ) { $catID = get_query_var('cat'); wpp_get_mostpopular( "range=weekly&stats_views=0&stats_comments=0&stats_date=1&thumbnail_width=300&thumbnail_height=190&order_by=views&cat=" . $catID ); } ?>
Forum: Plugins
In reply to: [WordPress Popular Posts] Top Post in categoryAh, that’s excellent! How would I go about getting the featured image/author name etc? Or just generally having my own markup for the output?
Forum: Plugins
In reply to: [WordPress Popular Posts] Top Post in categorySo there’s currently no way to show top posts of each category on the category pages without creating new templates for each category that you want to do it on?