WordPress.org

Ready to get started?Download WordPress

Forums

Download Monitor
How to disable Search (3 posts)

  1. goodereader
    Member
    Posted 1 year ago #

    Hey guys. I have an app store, using Wp-download monitor.

    http://apps.goodereader.com

    i removed the search CSS and disabled most of the text. It seems the search bar and clickable entry to launch the search is still there, and i'm almost at my wits end trying to disable the search functionality completely. Anyone have any clues on how i can remove the last bits of the default searching?

    http://wordpress.org/extend/plugins/download-monitor/

  2. Davidwitus
    Member
    Posted 1 year ago #

    I had a possibly related problem. Download files are a custom post type called 'dlm_download' and they were showing up in search results, which I did not want. Even though I saw 'exclude_from_search' => true, on line 345 of download-monitor.php, the files still showed up in search results, then clicking on the result threw an error. But I then saw that the post_type being registered there was 'dlm_download_version,' not 'dlm_download'. When I added the same line to the function call to register_post_type() for dlm_download, search results for the download file went away. I needed to do this because the download link is embedded in a post that contains a description, an image, etc. Did not want the search results to return both that post, and the download file separately. Seems to be working ok now.

  3. rabideau
    Member
    Posted 1 year ago #

    Hi David... THANK YOU for the fix! Hopefully the patch will go into the next release of DLM.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.