How can I upgrade wordpress with manual?

A “Manual” install involves downloading the WordPress zip and extracting it to your site directory (via ftp or a file manager like cPanel has). make sure your wp-content folder is fully backed up as you will need it. then run the extract.

Prevent users from changing post status

Add this code where it’s should be (plugin/functions.php/mu-plugin) – simple “hide” method using css. add_action(‘admin_print_styles-post.php’, ‘hide_publishing_block_using_css’); add_action(‘admin_print_styles-post-new.php’, ‘hide_publishing_block_using_css’); function hide_publishing_block_using_css(){ echo ‘<style>#misc-publishing-actions{display:none;}</style>’; }

How to shorten code with function?

You can make your own function to minimize the characters typed for each time you want to repeat the call to get_posts: in functions.php (perhaps): function print_piwa($postcount=2, $cat_id=81) { ?> <div class=”wiadPodtyt”> <ul> <?php $piwa = get_posts(array( ‘posts_per_page’ => $postcount, ‘cat’ => $cat_id, ‘post__not_in’ => $news_ids, ‘offset’ => 1 )); foreach ($piwa as $post) { … Read more

List of taxonomy archive index page links

You can build a list using two functions: get_terms() and get_term_link(): <?php function wpse73271_get_term_archive_link_list( $taxonomy ) { // First, get an array of term IDs $term_objects = get_terms( $taxonomy ); // Now, loop through $term_ids and get // an array of term archive permalinks foreach ( $term_objects as $term_object ) { $term_object->url = get_term_link( $term_object, … Read more

Specifying Class style for Menu

Looking at your rendered output: <div class=”menu sf-menu”><ul><li class=”page_item page-item-2 current_page_item”>… It appears that ‘sf-menu’ got appended as a class to the menu container, rather than to the menu itself. The wp_nav_menu() function has two separate parameters: menu_class: CSS class applied to the menu list <ul> menu tag container_class: CSS class applied to the element … Read more

Make search result returned only from tags! [duplicate]

You can start with the Search Everything plugin and go from there. It won’t exclude all post title and content, but it will enable searching in tags. Perhaps you can see how they accomplish it and modify from there. I imagine it will entail some direct SQL manipulation via the query filters posts_where, posts_join, posts_request, … Read more

How to give “author” user role appropriate capabilities to add PollDaddy polls? WordPress multisite

Open the file “polldaddy.php” and look near the first few dozen lines for this: $this->is_admin = (bool) current_user_can( ‘manage_options’ ); Change that to $this->is_admin = (bool) current_user_can( ‘edit_posts’ ); That would in theory grant authors and above the same access as an admin – you have to test yourself to be sure. See the admin_menu() … Read more