How to Retrieve Document Title for Search Results
-
My client bulk-uploaded hundreds of documents, and though they renamed all of their documents, the post titles themselves were not renamed. This isn’t an issue for us, really, except in search results. Document names look like “assetaddendumtohouseholdincometced”
Instead of renaming all 483 posts, I was wondering if there was an easy way to retrieve the mdoc[name] rather than the post name for search result listings. Something like:
<?php if (is_post_type('mdocs-posts')){; echo $the_mdoc_name; // Note: Pseudo-code - obviously doesn't work } else { the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); } ?>
I’m still digging through the plugin code. Is there already something built-in that will return the document name?
https://www.ads-software.com/plugins/memphis-documents-library/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to Retrieve Document Title for Search Results’ is closed to new replies.