Archives: Tech

How to change post type in WordPress?

·
It is better to use the Post Type Switcher plugin. https://wordpress.org/plugins/post-type-switcher
  • How to Attract Traffic to Your “Isolated Island” WordPress Blog Without Relying on Google

    How to Attract Traffic to Your “Isolated Island” WordPress Blog Without Relying on Google

    Starting a blog on WordPress can feel like launching an “isolated island” on the internet—at first, no one visits. Is it possible to attract traffic without depending on Google Search? The answer is yes, and today, there are several practical methods to do so.

    Blog Promotion in the Post-Google Era

    Relying on search engines for traffic exposes your blog to the whims of SEO and Google algorithm updates. Especially in the early days, Google-driven traffic is nearly zero, which can be discouraging. That’s why it’s crucial to explore ways to attract visitors from sources other than search. Here’s how you can do it:

    (more…)
    in
  • [Contact Form 7] How to prevent spam from being sent from the contact form

    [Contact Form 7] How to prevent spam from being sent from the contact form
    1. The first is the introduction of “Google Recaptcha v3”.
    2. The second is “installation of checkboxes”.
    in
  • Should I use web fonts with WordPress?

    Should I use web fonts with WordPress?

    I don’t recommend this because it slows down the display. If you really want to use it, you should upload the fonts and host it.

    in
  • Risks of Paid WordPress Plugins & Solutions

    Risks of Paid WordPress Plugins & Solutions
    1. Security Flaws: Risk of exploitation.
      • Fix: Ensure updates, run audits (e.g., Wordfence).
    2. Compatibility Issues: May conflict with themes/plugins.
      • Fix: Test in staging, check reviews/support.
    3. Vendor Lock-In: Hard to switch if discontinued.
      • Fix: Research alternatives, prioritize exportable data.
    4. Performance Impact: Slows site speed.
      • Fix: Test performance (e.g., GTmetrix), limit active plugins.
    5. Cost: Ongoing fees add up.
      • Fix: Budget wisely, prefer lifetime licenses.
    6. Poor Support: May lack adequate help.
      • Fix: Check support quality and user feedback.

    Conclusion: Be cautious, research thoroughly, and follow best practices for a secure, efficient site.

    in
  • How to create a free membership site with WordPress

    How to create a free membership site with WordPress

    If you want to build a membership site for free, I think the Simple Membership plugin is a good option.

    in
  • How to stop scaling images in WordPress

    How to stop scaling images in WordPress

    To stop the function that automatically scales images with a resolution of 2560px or higher when uploading images in WordPress, add the following to functions.php.

    //Disable Scaling Of Image
    add_filter( 'big_image_size_threshold', '__return_false' );
    in
  • How to sell paid articles on WordPress

    How to sell paid articles on WordPress

    This time I will introduce a plugin that I use to sell paid articles. To use this plugin, use WooCommerce’s shop system. And since you need your readers to create an account, you need to uncheck WooCommerce –> Settings –> Accounts & Privacy –> “Allow customers to place orders even if they don’t have an account.”

    So, what plugin are you using? It’s a plugin called Pay For Post with WooCommerce. First, install WooCommerce, then install Pay For Post with WooCommerce. After creating a post, before publishing it, create a product in WooCommerce. Make it into a virtual product and publish it. After that, go back to the post and link the WooCommerce product you created with the article.

    in
  • How to prevent WooCommerce products from being displayed when searching from the WordPress regular search widget

    How to prevent WooCommerce products from being displayed when searching from the WordPress regular search widget

    If you have WooCommerce installed in WordPress, all posts, pages, and products will be displayed when you search from the regular search widget. Today I will introduce a code that does not display the product and page when searching from the regular search widget. Put the following code in functions.php.

    /** Remove WooCommerce products and WordPress page results from search form widget */
       function mycustom_modify_search_query( $query ) {
         // Make sure this isn't the admin or is the main query
         if( is_admin() || ! $query->is_main_query() ) {
           return;
         }
         // Make sure it is not a WooCommerce product search form
         if( isset($_GET['post_type']) && ($_GET['post_type'] == 'product') ) {
           return;
         }
         if( $query->is_search() ) {
           $in_search_post_types = get_post_types( array( 'exclude_from_search' => false ) );
           // Type of post to delete (Example: "product" and "page")
           $post_types_to_remove = array( 'product', 'page' );
           foreach( $post_types_to_remove as $post_type_to_remove ) {
             if( is_array( $in_search_post_types ) && in_array( $post_type_to_remove, $in_search_post_types ) ) {
               unset( $in_search_post_types[ $post_type_to_remove ] );
               $query->set( 'post_type', $in_search_post_types );
             }
           }
         }
       }
       add_action( 'pre_get_posts', 'mycustom_modify_search_query' );
    in
  • [WordPress] What to do if the JetPack blog statistics widget does not update

    [WordPress] What to do if the JetPack blog statistics widget does not update

    If the statistics recorded on the JetPack site and the numbers displayed by the blog statistics widget are different, you can fix it using the following method.

    1. Install Transients Manager
    2. Once installed, go to Transients in your WP admin and search for a string starting with: “jetpack_restapi_stats_cache_”
    3. Delete everything that appears.
    4. If you reload the blog and check the widget, the correct value should be restored.
    in