William Quade
Forum Replies Created
-
Forum: Plugins
In reply to: [Co-Authors Plus] Listing all pages by a co-authorI managed to get it to display posts for the logged in user. How do I modify this code to get the author of the current page, and not the logged in user.
get_coauthor_by( 'user_login', $user_login )Forum: Plugins
In reply to: [Co-Authors Plus] Listing all pages by a co-author<?php // Get the author term based on a variable called $user_login global $coauthors_plus; $coauthor = $coauthors_plus->get_coauthor_by( 'user_login', $user_login ); $coauthor_term = $coauthors_plus->get_author_term( $coauthor ) // Build the query arguments $args = array( 'post_type' => 'post', 'posts_per_page' => 10, 'post_status' => 'publish', 'tax_query' => array( array( 'taxonomy' => 'author', 'field' => 'slug', 'terms' => $coauthor_term->slug, ), ), ); $author_query = new WP_Query( $args ); if ( $author_query->have_posts() ) : while ( $author_query->have_posts() ) : $author_query->the_post(); // Do your presentation endwhile; endif; ?>Would would I need to modify to get it working?
Forum: Plugins
In reply to: [Co-Authors Plus] Listing all pages by a co-authorI put the code into the website and I get the unexpected T_VARIABLE parse error on line seven of the code on your website. I just wrapped all of the sample code in <?php ?>. What’s my issue?
Forum: Plugins
In reply to: [Co-Authors Plus] Listing all pages by a co-authorThanks a lot. I’ll let you know if I need any more help.
I’m having that same issue and commenting out that line fixed it for me. I have another issue where “follow” shows up as plain text above a sidebar widget I have with a Twitter icon. The icon shows, and the text shows above it even though I don’t have the text enabled.
Forum: Hacks
In reply to: Having all images uploaded to MaxCDN instead of wp-uploadsMy web host doesn’t support cron-jobs. I guess I’ll have to find another way, or just manually FTP into the website and delete files once a month or so.
Forum: Networking WordPress
In reply to: Media uploads but WordPress displays wrong URLI ended up just reinstalling WordPress and now everything seems to work.
Forum: Networking WordPress
In reply to: Media uploads but WordPress displays wrong URLI’ve had this installation active since WordPress 3.0, I’ve tried disabling all the plugins and themes and all that. I only have one blog on the network right now.