jondewitt
Forum Replies Created
-
Forum: Plugins
In reply to: [P3 (Plugin Performance Profiler)] Does not scan other pluginsThis is happening on my site as well and I think it’s related to PHP7 (see GoDaddy’s sticky post at the top of the forum). Unfortunately considering the update history it doesn’t seem like they plan on putting much more (if any) effort into this plugin.
Forum: Plugins
In reply to: [Category to Pages WUD] Category Description QueryHi @wistudatbe, I have figured out a solution for another request of mine, listing all pages in the same category as the current page:
<?php global $post; $term_list = wp_get_post_terms($post->ID, 'categories', array("fields" => "ids")); $cat_id = array_values($term_list)[0]; $args = array( 'post_type' => 'page', 'tax_query' => array( array( 'taxonomy' => 'categories', 'field' => 'id', 'terms' => $cat_id ) ) ); $related = get_posts($args); foreach ( $related as $post ) : setup_postdata( $post ); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; wp_reset_postdata(); ?>It could probably be nicer but works for now!
I look forward to your updates.
Forum: Plugins
In reply to: [Category to Pages WUD] Category Description QueryI figured this out by myself using an SQL query but boy would it be great if this plugin could be updated with some helper functions such as: get_pagecat_title(), get_pagecat_description() and get_pagecat_children();
My solution:
$table_prefix = $wpdb->prefix; $query = " SELECT taxonomy.description FROM {$table_prefix}terms as terms, {$table_prefix}term_taxonomy as taxonomy WHERE terms.term_id = taxonomy.term_id AND terms.name = %s "; $desc = $wpdb->get_var($wpdb->prepare($query, $cat_title)); echo $desc;Forum: Plugins
In reply to: [Front-end Editor for WordPress] /edit/ results in 404 and no contentI edited the plugin core to use ?edit and not trailing slashes which has been working well for me and also fixed what was a broken update page:
/edit/&message=1 instead of /?edit&message=1
The getContent error was a fault of my own, not using reset_wp_query() in a sidebar loop.
Forum: Plugins
In reply to: [Front-end Editor for WordPress] /edit/ results in 404 and no contentusing /?edit instead of /edit successfully puts me into editing mode. However, the page title always changes to my latest blog entry title, while the content stays correct.
Editing works, but saving does not. JS error console shows “Uncaught TypeError: Cannot read property ‘getContent’ of null”
Forum: Plugins
In reply to: [mqTranslate] Please remove Max_Supported_WP!It’s a bad feature. Editing a page or post after the plugin has disabled itself can lead to a single post housing all of the content for whatever languages you previously had separated. Thanks though I’ll just keep editing the plugin file to change max supported version.
Forum: Plugins
In reply to: [IQ Testimonials] 404 Error after submitting the form ?Had the same problem, found another plugin. Author is non-responsive, don’t download.
Forum: Plugins
In reply to: [IQ Testimonials] Testimonials Submission via WidgetTrying to do the same thing here. Form submission redirects to the same URL it was submitted from, but returns 404 content. I’m using do_shortcode([iq-testimonials-form]) in my sidebar.php file.
Author, please respond!