WPFTS Pro Main Site WPFTS Community Forum
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. ILOCIMWCA
    3. Topics
    Get WPFTS Pro today with 25% discount!
    I
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Groups 0

    Topics

    • I

      Custom Gutenberg block with ACF missed from search results

      Watching Ignoring Scheduled Pinned Locked Moved Frequently Asked Questions
      3
      0 Votes
      3 Posts
      1k Views
      I
      @epsilonadmin custom block. Here is info how to create block - https://www.advancedcustomfields.com/blog/acf-5-8-introducing-acf-blocks-for-gutenberg/ So we register new block, assigned fields for this block. We add block on page. When I try to search phrase from one of these field - page not added to search result
    • I

      Filter and sort result list

      Watching Ignoring Scheduled Pinned Locked Moved Frequently Asked Questions
      4
      0 Votes
      4 Posts
      921 Views
      EpsilonAdminE
      Hi @ilocimwca It's simple to do with this addon https://fulltextsearch.org/wpfts-addon-files-only-1.0.1.zip It contains some code to limit post_type to 'attachment' only: add_action('pre_get_posts', function(&$wpq) { if ($wpq->is_search && $wpq->is_main_query()) { $wpq->set('post_type', array('attachment')); $wpq->set('post_status', array('inherit')); } }); Pretty simple. If you want to set up your own post_types, just modify this code. You can read about full WP_Query() parameters at the Wordpress official documentation.