WordPress.org

Ready to get started?Download WordPress

Forums

Easy Digital Downloads
[resolved] Hide from search (7 posts)

  1. Scott Wyden Kivowitz
    Member
    Posted 1 year ago #

    Is there a way to hide the /downloads/productname (i guess, the custom post type) from WordPress search?

    http://wordpress.org/extend/plugins/easy-digital-downloads/

  2. Are you comfortable adding a custom code snippet to your site?

  3. MKPaul
    Member
    Posted 1 year ago #

    Hello Pippins,

    How can i change the downloads from product url.

    http://www.mywebsite.com/downloads/myproducts/

    I want to change downloads to items.

    Thanks
    MP

  4. Scott Wyden Kivowitz
    Member
    Posted 1 year ago #

    Hey Pippin,

    I have a site-specific plugin I made so universal code doesn't go into my theme's functions file. If there is a simple snippet that I could copy/paste then that works for me!

  5. @MKPaul You can change the product URL by following this guide: https://easydigitaldownloads.com/docs/edd_slug/ - Please do not hijack thread topics please, it's okay to create a new one :)

    @Scott - This should work for you:

    function pw_edd_hide_from_search( $args ) {
    	$args['exclude_from_search'] = true;
    	return $args;
    }
    add_filter( 'edd_download_post_type_args', 'pw_edd_hide_from_search' );
  6. Scott Wyden Kivowitz
    Member
    Posted 1 year ago #

    That worked perfect, Pippin. Thanks so much!

  7. Great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags