JackNexusGx
Forum Replies Created
-
Forum: Plugins
In reply to: [Social] Can't add Twitter accountsHey cangluo
I tried your fix, and I got it to work once on my development environment, and then it stopped working – I can’t get it to work on my production environment at all.
The first time I try it looks like it’s working, it opens a pop-out window, I enter the account details and it asks me to authorise, it closes the page and it refreshes the main settings page but shows no accounts there.
I checked the caching with die(“Hello world”); like you suggested, and it’s definitely working, but still no dice.
Any ideas? I’d be really, really grateful.
Forum: Fixing WordPress
In reply to: WordPress Admin panel slow after migration to faster server.I just ran the P3 profiler and it’s report stated that the issue was to do with WordPress Core, particularly on the WP-Admin pages, it’s taking at least.
My detailed graph can be seen here: http://cl.ly/Tl6q
Forum: Fixing WordPress
In reply to: WordPress Admin panel slow after migration to faster server.Hi, Fresher
I’ve been through using these methods and the front-end is really fast now, but the original post puts emphasis on the admin panel being slow, not the front end.
Any thoughts about the admin panel itself being slow, not the front end?
Forum: Plugins
In reply to: Creating a custom post-type taxonomy post-pageIf it helps, here is how I’ve registered my post type and taxonomy:
add_action( 'init', 'videos_post_type' ); function videos_post_type() { $labels = array( 'name' => 'Videos', 'singular_name' => 'Video', 'add_new' => 'Add New Video', 'add_new_item' => 'Add New Video', 'edit_item' => 'Edit Video', 'new_item' => 'New Video', 'view_item' => 'View Video', 'search_items' => 'Search Videos', 'not_found' => 'No Videos found', 'not_found_in_trash' => 'No Videos in the trash', 'parent_item_colon' => '', ); register_post_type( 'video', array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'exclude_from_search' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 10, 'supports' => array( 'title', 'editor', 'thumbnail' ), 'register_meta_box_cb' => 'add_video_meta_boxes', // Callback function for custom metaboxes ) ); } add_action( 'init', 'create_video_hierarchical_taxonomy', 0 ); function create_video_hierarchical_taxonomy() { $labels = array( 'name' => _x( 'Video Categories', 'taxonomy general name' ), 'singular_name' => _x( 'Category', 'taxonomy singular name' ), 'search_items' => __( 'Search Categories' ), 'all_items' => __( 'Video Categories' ), 'parent_item' => __( 'Parent Category' ), 'parent_item_colon' => __( 'Parent Category:' ), 'edit_item' => __( 'Edit Category' ), 'update_item' => __( 'Update Category' ), 'add_new_item' => __( 'Add New Category' ), 'new_item_name' => __( 'New Category Name' ), 'menu_name' => __( 'Categories' ), ); // Now register the taxonomy register_taxonomy('video-category',array('video'), array( 'hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'public' => true, 'exclude_from_search' => false, 'show_admin_column' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'video-category' ), )); }