rmegliorino

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
in reply to: Exclude download files from WordPress search results #44462

rmegliorino
Member

This works:


function exclude_wpdmpro_type() {
	global $wp_post_types;
	if ( post_type_exists( 'wpdmpro' ) ) {
		// exclude from search results
		$wp_post_types['wpdmpro']->exclude_from_search = true;
	}
}

Just make sure to double check your single quotes because the WYSIWYG Editor sometimes converts them to real text quotes

in reply to: Doc_Preview issue. Showing Code instead of file #40865

rmegliorino
Member
This reply has been marked as private.
in reply to: Doc_Preview issue. Showing Code instead of file #40846

rmegliorino
Member

I apologize. The client would rather not share the login at this time. Is there some sort of troubleshooting I can do on my end? Thanks in advance.

in reply to: Doc_Preview issue. Showing Code instead of file #40790

rmegliorino
Member
This reply has been marked as private.
in reply to: Doc_Preview issue. Showing HTML #40746

rmegliorino
Member
This reply has been marked as private.
in reply to: Doc_Preview issue. Showing HTML #40676

rmegliorino
Member

Sorry I wasn’t clear. I’m linking to a PDF, but the system is returning the above HTML for some reason.

Viewing 6 posts - 1 through 6 (of 6 total)