// For display and saving in order details page. add_action( ‘add_meta_boxes’, ‘add_shop_order_meta_box’ ); function add_shop_order_meta_box() { add_meta_box( ‘custom_column’, __( ‘Customer Source’, ‘your_text_domain’ ), ‘shop_order_display_callback’,… Read More →
Here’s the SQL query for deleting all posts in Trash in WordPress: sql DELETE FROM wp_posts WHERE post_status = ‘trash’; This query will delete all… Read More →
Author Templates – WordPress | Author page
May 13, 2022
WordPress author page Linking to Author Pages from Posts <p>Written by: <?php the_author_posts_link(); ?></p> List of Authors with Links <h2>List of authors:</h2> <ul> <?php wp_list_authors(); ?> </ul>… Read More →
Simple WordPress Loop
May 13, 2022
The Loop <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); <!– Test if the current post is in category 3. –>… Read More →
How to Disable Gutenberg and Keep the Classic Editor in WordPress Install and activate the Classic Editor plugin. Go to the Settings » Writing page… Read More →
When working with WordPress themes, one of the most essential parts of any website’s design is its header. The header, which is typically composed of… Read More →