Widgets not expanding on wordpress 3.3 widget dashbord
I installed w3 total cache plugin and cleared my browser cache. Wish I had of done this pre deleting some forms!
I installed w3 total cache plugin and cleared my browser cache. Wish I had of done this pre deleting some forms!
I ended up writing my own custom code for wp_count_posts() and wp_count_comments() to generate the counts from scratch (through custom wp queries) based on their original code (wp_count_posts() is in wp-includes/post.php and wp_count_comments() is in wp-includes/comment.php). Thanks @kaiser for the excellent effort.
I’m going to trust my gut can agree with brasofilo. As a work around, why not just create a custom post type and then have the widget pull content from that instead of the widget’s instance? You can make it so the widget accepts a post ID # and only pulls from that ID for … Read more
Theme editor not showing correct index.php
This is pretty easy to do with the Dashboard Widgets API http://codex.wordpress.org/Dashboard_Widgets_API. Here are the steps I would take to create this: Queue up a jQuery script for AJAX handling Create a PHP AJAX function and corresponding AJAX hook for saving the form data Create the dashboard widget with HTML form input(s) Here’s a sample … Read more
Display WooCommerce subscriptions for user [closed]
Lokks like you have a function declared inside another function, your code is wrong, try this: // wp_dashboard_setup is the action hook add_action(‘wp_dashboard_setup’, ‘mycustom_moviestats’); // add dashboard widget function mycustom_moviestats() { wp_add_dashboard_widget(‘custom_movie_widget’, ‘Movie Stats’,’custom_dashboard_movie_list’); } function custom_dashboard_movie_list(){ $args = array( ‘public’ => true , ‘_builtin’ => false ); $output=”object”; $operator=”and”; echo ‘<table>’; //loop over all … Read more
The path in the editor is just for reference, most of the time users do not even bother looking at it and those that do use if to see what html tag there are in. Example: <p> This is just a sample paragraph </p> <span> This is just a sample span </span> <blockquote> This is … Read more
I have Something that i use from time to time when i need something like that: <?php /* Plugin Name: List User Posts Plugin URI: http://en.bainternet.info Description: lists user posts on the front end Version: 0.1 Author: Bainternet Author URI: http://en.bainternet.info */ if (!class_exists(‘list_user_posts’)){ /** * list_user_posts * @author Ohad Raz */ class list_user_posts { … Read more
wp_dropdown_users accept for show arguments only field from the users table, not from user_meta table. If you enable debug, with your code, using ‘companyname’ for $show argument you will see something like: WordPress database error: [Unknown column ‘wp_users.companyname’ in ‘field list’] SELECT wp_users.ID,wp_users.user_login,wp_users.companyname FROM wp_users WHERE 1=1 ORDER BY display_name ASC So, solution is create … Read more