Tag Info

New answers tagged

2

Yes, you need to write code to populate it. This is untested but should work. add_filter('manage_edit-cpt_roundtable_columns', 'init_roundtable_custom_columns'); function init_roundtable_custom_columns($columns) { return array( 'cb' => '<input type="checkbox" />', 'title' => __('Title'), 'taxonomy-sessions' => ...


3

Found it! The post_type_labels_{$post_type} filter does the job beautifully. (Documented here.)


0

Making the text something different might also be handy: add_filter ( 'gettext', 'wsfilter_collapseMenu', 10, 3 ); function wsfilter_collapseMenu($translated, $original, $domain) { if ($original == 'Collapse menu') return 'Hide navigation'; else return $translated; } Or making the text completely blank but keeping the little arrow with ...


0

Yes, you can do this and it does not matter if plugins are different for the two sites, as you are not not using the same tables or anything. Still, if you use plugins that are badly written and build resource urls on top the home url, these will have issues (404 errors mostly).


-1

i am used best solution for this problem. Just create an subdomain like 'm.site.com' and copy main site all files and folder in 'm' directory.... And see your subdomain has been created with same content... I am used this method....


0

It turns out that in my functions.php file, I had the following function: function limit_posts_per_archive_page() { if ( is_tax('project_categories') ) $limit = 9999; else $limit = get_option('posts_per_page'); set_query_var('posts_per_archive_page', $limit); } add_filter('pre_get_posts', 'limit_posts_per_archive_page'); ...


0

I solved this by overrriding the search_box() function with the following: public function search_box( $text, $input_id ) { ?> <p class="search-box"> <label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label> <input type="search" id="<?php echo $input_id ?>" ...


1

eSo the plugin mishaps are blocking you from signing into the dash? You will likely need server access or someone who has this access if you're not using version control. You can just rename the folder for the plugin that you want to de-activate (BBPress Like Button). That will force it to de-activate since the dashboard will lose track of it. Then log into ...


3

Ahhh.. yes. WordPress pointers. You know, there are quite a lot of mixed feelings when it comes to using pointers ;) You were on the right track with your code above. But there are a couple issues. @G.M. is correct about the pointer('open') command opening all your pointers at once. Furthermore, you are not providing a method to advance through ...


1

Yes we can achieve it by following . add_filter( 'user_row_actions', 'custom_action_function', 1, 2 ); function custom_action_function($actions, $user_object) { if ( 1 >= count( $user_object->roles ) && 'subscriber' !== $user_object->roles[0] ) { unset( $actions['delete'] ); } return $actions; }


4

You are calling .pointer( 'open' ); javascript function on all the pointers objects, so is not a surprise that all pointers appear on same time... That said, I don't understand why do you returns all pointers (even non-active ones) from custom_admin_pointers() and then add an additional function to check if there are some active pointers and a check inside ...


2

order is a reserved term, the best - I know of - overview over those can be found here: Codex: register_taxonomy() - Reserved Terms. The list is in it's relevance not restricted to taxonomies. The introduction to it does make it clear(er) why: Avoiding the following reserved terms is particularly important if you are passing the term through the $_GET or ...


2

This is actaully a naming clash. Wordpress uses the word order in its core as a sorting function, and is also a reserved name that should not be used by themes or plugins Changing your custom post type name to orders will fix your problem


2

You probably have an action to 'pre_get_posts' that it's excluding the page post-type. Paste that code here, so we can help you.


0

Instead of manually removing the safety filters like this, you should simply set the correct user for these processes to be running as. When you are logged in and running a process manually, you are logged in and thus you have your credentials being used, and your permissions being used. I'm betting you're an administrator on the site. You have permission ...



Top 50 recent answers are included