Archives: Tech

What if you don’t know what you can offer your blog readers?

·
Create valuable blog content by: Tapping Into Your Expertise: Focus on topics you’re passionate about or skilled in. Understanding Your
  • Fix Category Count Issues After Switching Post Types in WordPress

    Fix Category Count Issues After Switching Post Types in WordPress

    Switching post types with the Post Type Switcher plugin can cause incorrect category counts. Fix it easily by deleting the problematic category:

    1. Identify the Issue: Check which category shows incorrect counts.
    2. Delete the Category: In the WordPress dashboard, go to Posts > Categories and delete the broken category (posts remain intact).
    3. Reassign/Create Category: WordPress will recalculate counts when posts are reassigned or defaulted.

    This quick fix resolves misaligned counts and keeps your site organized. Advanced users can opt for database solutions if needed.

    in
  • How to reduce items on WooCommerce checkout page

    How to reduce items on WooCommerce checkout page

    I will show you how to delete unnecessary items on the WooCommerce checkout page. Just put the following code in your theme’s functions.php and save/update. By entering this, all input other than first name, last name, company name (optional), and email address will be deleted. This is ideal if you are selling virtual products. Please feel free to adjust any items you need.

    // Remove billing details from woocommerce checkout field
                  add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
                  function custom_override_checkout_fields( $fields ) {
                              unset($fields['order']['order_comments']);
                              unset($fields['billing']['billing_address_1']);
                              unset($fields['billing']['billing_address_2']);
                              unset($fields['billing']['billing_city']);
                              unset($fields['billing']['billing_postcode']);
                              unset($fields['billing']['billing_country']);
                              unset($fields['billing']['billing_state']);
                              unset($fields['billing']['billing_phone']);
                              unset($fields['billing']['billing_address_2']);
                              unset($fields['billing']['billing_postcode']);
                              unset($fields['billing']['billing_city']);
                              return $fields;
                          }
                  add_filter('woocommerce_enable_order_notes_field', '__return_false');
    in
  • What to do when you can’t upload CSV files with WooCommerce

    What to do when you can’t upload CSV files with WooCommerce

    Today I will write about what to do when you cannot import a CSV file when importing products in WooCommerce. A message like the one below appears. “You do not have permission to upload this file type.”

    1 1024x696 1

    In this case, install the following plugin.

    “WP Add Mime Types”

    Once installed, add the following string to the additional items field on the settings screen and save.

    「csv = text/csv」

    3 1024x701 1

    Then try importing the CSV file again and it will be able to import.

    in
  • Optimizing WordPress Permalinks for SEO

    Optimizing WordPress Permalinks for SEO

    Clean permalinks are vital for SEO, offering advantages over parameterized URLs. Here’s why:

    1. Readability: Clean URLs like example.com/product/shoes are easier to understand than example.com/?p=123.
    2. Keyword Optimization: Descriptive URLs include relevant keywords, aiding search engine rankings.
    3. Link Sharing: Clean URLs look appealing and are more likely to be shared.
    4. Crawl Efficiency: Search engines navigate structured URLs more effectively.
    5. Avoiding Duplicate Content: Parameterized URLs can lead to duplicate content issues.

    Best Practices for WordPress Permalinks

    1. Use Post Name Structure: Go to Settings > Permalinks and select “Post name.”
    2. Include Keywords: Reflect the page content in the URL.
    3. Keep It Short: Avoid unnecessary words; prioritize clarity.
    4. Avoid Dates: Unless essential, skip date-based URLs to keep content evergreen.
    5. Use Canonical Tags: Manage duplicate content if parameters are necessary.
    6. Set Redirects: Use 301 redirects for changed URLs to retain SEO value.

    By adopting these practices, you’ll enhance SEO performance and user experience.

    in
  • How to bulk delete manual excerpts of posts in WordPress

    How to bulk delete manual excerpts of posts in WordPress

    Put the following code at the bottom of the theme’s functions.php, save and update, reload the site, delete the code from functions.php, save again and update. Then, you don’t need to go to MyPHPAdmin.

    $wpdb->query( "UPDATE wp_posts SET post_excerpt='' " ); 
    in
  • How to set an featured image for an article that does not have an featured image

    How to set an featured image for an article that does not have an featured image

    I installed Easy Add Thumbnail so that the first image appearing in a post becomes the featured image. After that, I installed a plugin called Quick Featured Images. This plugin allows you to set featured images in bulk for existing posts and also set them for future posts. With this plugin, you can assign specific featured images based on categories or tags, so I set a featured image for all categories and also for future posts.

    With these two plugins, 96% of the posts now have featured images, but 4% still do not. The issue is with the posts where Easy Add Thumbnail didn’t pick up the image as a featured image, even though it existed within the post. For these remaining posts, I installed a plugin called Auto Featured Image (Auto Post Thumbnail) to generate featured images and avoid leaving any “No Images” placeholders. However, the featured images created by Auto Featured Image seem somewhat rough or odd, so I plan to fix them in the future.

    in
  • How to attract traffic to a WordPress site without relying on Google

    How to attract traffic to a WordPress site without relying on Google

    Boost WordPress site traffic without Google by:

    1. Social Media: Share content on platforms like Facebook, Instagram, and LinkedIn; create shareable visuals; engage in groups.
    2. Content Marketing: Guest blog, collaborate with influencers, and send email newsletters.
    3. Forums & Bookmarking: Share insights on Reddit, Quora, and niche forums with links to your site.
    4. Video Marketing: Create YouTube tutorials, live streams, or webinars linked to your site.
    5. Influencer Marketing: Partner with relevant influencers for promotions or sponsored content.
    6. Paid Ads: Run targeted social media and native ads.
    7. Community Building: Build online groups and host webinars to foster engagement.
    8. Other Search Engines: Optimize for Bing and Yahoo.

    Diversify your strategies to grow visibility and traffic effectively.

    in