Get WPFTS Pro today with 25% discount!

Pro license purchased on Jan 17, 2020 is suddenly invalid?! What's up?

Suggested Topics

  • Indexing add-on blocks

    General Discussion
    2
    0 Votes
    2 Posts
    335 Views
    L

    Here is the accordion.php code that creates the faq entries.

    accordion.php.txt

    I added the code from the documentation to my function.php in the child theme, but of course this is not a post type I'm dealing with, but a page with an add-on.

    /** * This snippet adds metadata of "employee" post to search index */ add_filter('wpfts_index_post', function($index, $post) { global $wpdb; // Basic tokens /* * This piece of code was commented out intentionally to display things * which was already done before in the caller code $index['post_title'] = $post->post_title; $index['post_content'] = strip_tags($post->post_content); */ if ($post->post_type == 'employee') { // Adding new token "employee_data" specially for posts of type "employee" $data = array(); $data[] = get_post_meta($post->ID, 'address', true); $data[] = get_post_meta($post->ID, 'phone', true); $data[] = get_post_meta($post->ID, 'name', true); $data[] = get_post_meta($post->ID, 'function', true); $index['employee_data'] = implode(' ', $data); } return $index; }, 3, 2);
  • languages

    General Discussion
    7
    0 Votes
    7 Posts
    539 Views
    I

    @ismacuasni

    Yes! All perfect. Thanks!

  • Search word in a PDF

    General Discussion
    3
    0 Votes
    3 Posts
    747 Views
    J

    @epsilonadmin

    I would like to do a search for a word in a pdf file and that the result can be displayed on the same page (below the file) either in the form of a table or in the form of a list of annotations.

    Have a link between the document and the word found. For example being able to click on the word and find it directly in the file. Kind of like doing CTRL + F in a PDF file.

    Thank you.

  • License Key

    General Discussion
    2
    1 Votes
    2 Posts
    607 Views
    EpsilonAdminE

    Once purchased, the system should send you a couple of letters from the store. There you will see the bill report and also the license key.

    If you didn't get a letter, please check your spam box. Also, you can find your license key on your account page at https://fulltextsearch.org/my-account/.

    If you still have issues with it, please put a message in the Live Chat on the https://fulltextsearch.org main page. Thanks!

  • Include PDF's Uploaded via RCWD Upload

    General Discussion
    3
    0 Votes
    3 Posts
    705 Views
    EpsilonAdminE

    Hi, the idea is to use wpfts_index_post hook to extract the special meta-field (added by RCWD) value and index the file which is linked there.

    The working code is below.

    add_filter('wpfts_index_post', function($index, $post) { global $wpfts_core; if ($post && $wpfts_core && function_exists('get_field')) { if ($post->post_type == 'paper') { // You can change the post_type here $file = get_field('file', $post->ID); // You can change the ACF field name here if (isset($file['path']) && (strlen($file['path']) > 0)) { // Add a special library to work with file contents (included to WPFTS Pro) require_once $wpfts_core->root_dir.'/includes/wpfts_utils.class.php'; // This call will return extracted text from the FILE $ret = WPFTS_Utils::GetCachedFileContent_ByLocalLink($file['path'], false, true); // Store the content to separate index cluster (so we can apply different relevance weight to it, if required) $index['rcwd_file_content'] = isset($ret['post_content']) ? trim($ret['post_content']) : ''; } } } return $index; }, 3, 2);

    Looks not that hard?

    Also, you can download the ready addon plugin here.

    wpfts-addon-rcwd-uploader.zip

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