WPFTS Pro Main Site WPFTS Community Forum
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    Get WPFTS Pro today with 25% discount!

    [Solved] Solution for incompatibility with Newsphere theme

    Scheduled Pinned Locked Moved Recipes and Known Solutions
    newsphere
    3 Posts 2 Posters 1.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mlg4035
      last edited by EpsilonAdmin

      File: /wp-content/themes/newsphere/inc/hooks/blocks/block-archive-list.php

      Change Line: 48

      $excerpt = newsphere_get_excerpt($excerpt_length, get_the_content());
      

      To:

      $excerpt = the_excerpt();
      

      Cheers!
      MLG4035

      1 Reply Last reply Reply Quote 0
      • M Offline
        mlg4035
        last edited by

        I noticed that excerpts still show bare shortcodes. You can add the following code to the Newsphere theme's functions.php file to strip shortcodes from excerpts.

        // Remove Shortcodes from excerpt
        function newsphere_remove_shortcode_from_excerpt($content) {
           
            $content = strip_shortcodes( $content );
              
             return $content;
        }
         
        add_filter('the_excerpt', 'newsphere_remove_shortcode_from_excerpt');
        
        EpsilonAdminE 1 Reply Last reply Reply Quote 1
        • EpsilonAdminE Offline
          EpsilonAdmin @mlg4035
          last edited by

          @mlg4035 Thank you very much!

          https://e-wm.org

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Suggested Topics

          • EpsilonAdminE

            [Solved] EduMall theme does not show Smart Excerpts and broken the search results page

            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions
            1
            0 Votes
            1 Posts
            608 Views
            No one has replied
          • EpsilonAdminE

            [Solved] Polylang limits search by language taxonomy

            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions fix patch polylang search taxonomy
            1
            0 Votes
            1 Posts
            851 Views
            No one has replied
          • EpsilonAdminE

            [Solved] Search PDF by content in Real3D FlipBook Plugin

            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions search pdf real3d flipbook pdfviewer
            1
            0 Votes
            1 Posts
            1k Views
            No one has replied
          • EpsilonAdminE

            [Solved] Files not shown in TemplateToaster theme search results

            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions templatetoaster theme search
            1
            0 Votes
            1 Posts
            734 Views
            No one has replied
          • EpsilonAdminE

            [Solved] Incompatibility with Flatbase theme

            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions flatbase excerpt theme
            1
            0 Votes
            1 Posts
            782 Views
            No one has replied

          Additional Resources

          • My Account
          • Buy WPFTS Pro
          • Community Forum
          • Affiliate Program
          • Privacy Policy
          • Terms & Conditions
          • Contact Us
          • Coupon Partner

          Be the first to read the news!

          We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

          Join Us Now!

          We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

          We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

          ewm-logo-450

          The forum powered by NodeBB | Contributors