How to remove the dropdown author data from the post edit page

An easy sulotion will be to remove the post type author feature. add_action( ‘init’, ‘remove_cpt_author’ ); function remove_cpt_author() { remove_post_type_support(‘post’, ‘author’); // this function require the post type and the feature you want to remove. }

are there any initiatives to work wordpress as microservices?

No, without going into too much ranting, the wordpress core philosophy is based on user experience and API stability, this kind of restructuring is impossible without “breaking some eggs” so I don’t imagine core wordpress to go that direction in any time soon. In addition, it doesn’t make much sense for anything smaller than google/amazon/facebook … Read more

Saving changes in wp_editor

First of all the the_editor() function has been deprecated and it’s advised to use the wp_editor() instead. Just to explain how the value is being saved, your value in the textarea isn’t being saved by the textarea element but instead and most likely by update_post_meta. To replace your textarea with wp_editor, you can define it … Read more

Is it possible to show full content of the post when there is only one post in a grid?

not sure how you’re actually displaying your posts whether it’s a custom query and which page your doing your grid, for example a category page. Here’s a little snippet that may help you. //get current category page $category = get_the_category(); //get current category page ID $category_id = $category->cat_ID; //set arguments for your desired posts output … Read more

remove/hide pages from users backend

One way to achieve this is by looping through the parent pages and fetching their respective children pages ids. The resulting arrays can then be merged and used in the ‘post__not_in’ variable. add_filter( ‘parse_query’ , ‘exclude_pages_from_admin’ ); function exclude_pages_from_admin( $query ) { global $pagenow,$post_type; $pages = array(‘1′,’2′,’3’); foreach ( $pages as $parent_page ) { $args … Read more

Reset generated wp-config.php with wp-cli

How can I solve this and besides, Can someone explain me where this temporary config file is located? This will be generated in the WordPress root folder, the same from where you call the wp-cli. Keep in mind you need to provide the correct username password and database name, else it will error. If you … Read more

Archive page doesn’t work

If you’re using a static page as your front page (as shown in your first image), then neither archive.php or home.php will work. The page hierarchy for static home pages is: Page Template page-{slug}.php page-{id}.php page.php index.php If you want to show an archive on your front page, select ‘your latest posts’, then home.php will … Read more