Problem with menu categories doubling up when updating database?
The plugin folder had not been pulled by SmartGit. After deleting the wordpress folder on my local host and pulling again from the git it worked.
The plugin folder had not been pulled by SmartGit. After deleting the wordpress folder on my local host and pulling again from the git it worked.
It sounds like you’re talking about a pingback. You can disable it from Admin|Settings|Discussion. Uncheck Attempt to notify any blogs linked to from the article. Or, you can do it on a post-by-post basis under “Discussion” below the post you’re creating/editing. You might need to enable “Discussion” in the “Screen Options” menu at the top … Read more
When pasting text from Microsoft Word, make sure you use the “Paste from Word” feature in the WYSIWYG editor. This can be done by clicking on the far right icon that looks like rainbow squares called “Show/Hide Kitchen Sink” (). This will reveal a second row of icons, one with a “W” for Word (). … Read more
If your WordPress installation is in the folder ‘sitename’, than this .htaccess should go in that folder. Not your theme folder. From the WordPress codex: WordPress’s index.php and .htaccess files should be together in the directory indicated by the Site address (URL) setting on your General Options page (http://codex.wordpress.org/Using_Permalinks)
You should post to the same URL and catch the submit ex: function option_page_html(){ if (isset($_POST[‘plugin_action’]) && $_POST[‘plugin_action’] == ‘post_url’){ include_once(plugin_dir_path(__FILE__).’post-video.php’); } ?> <div> <form action=”” method=”post”> <p><h3>Paste video url</h3></p> <input type=”text” size=”100″ name=”url” /><br/> <input type=”hidden” name=”plugin_action” value=”post_url”> <input type=”submit” value=”Post”/> </form> </div> <?php } note : this is an example and you should … Read more
Not sure if is this, but you can add taxonomies in query: new WP_Query(array(‘posts_per_page’ => $num, ‘post_status’ => ‘publish’,’taxonomy’ => $taxonomy)); You can filter by term with $taxonomy => $term: $taxonomy = ‘seasons’; $term = ‘spring’ /* $terms = array(‘summer’,’winter’) an array */ new WP_Query(array(‘posts_per_page’ => $num, ‘post_status’ => ‘publish’,$taxonomy => $term)); More on WP_Query … Read more
According to the source code of wp-admin/includes/class-wp-upgrader.php Single plugin update: add_filter(‘upgrader_pre_install’, array(&$this, ‘deactivate_plugin_before_upgrade’), 10, 2); add_filter(‘upgrader_clear_destination’, array(&$this, ‘delete_old_plugin’), 10, 4); It’ll deactivate the plugin before upgrade and you need to re-activate it manually after upgrade. No maintenance file generated Bulk Pluigns Update add_filter(‘upgrader_clear_destination’, array(&$this, ‘delete_old_plugin’), 10, 4); // Only start maintenance mode if running in … Read more
not really php solution, but that’s how I solved this problem. I deactivated phone and email fields from Store Settings -> Chekout and created custom ones. so now when I go to orders it displays in like Additional Checkout Fields Phone: Email:
If you’re wanting to display post specific to the site they were created on, and not on the others, WordPress MU does this out of the box. There are multiple tables in the same database setup for each site’s posts. They all share the same user table, but data for each site is logically separated … Read more
It seems like you got a permalink conflict. You can’t give two “things” the same slug/URi in WordPress. Please try it with a different slug than events either for the custom post type or the custom taxonomy. And yes, I know, this answer will be flagged as “low quality” due to its length.