• Resolved the_zero

    (@the_zero)


    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)
  • Plugin Author bhaldie

    (@bhaldie)

    currently no, search functionality is not tied to the files name. I will look into it thou, thanks of the suggestion.

    Thread Starter the_zero

    (@the_zero)

    I didn’t mean for you to create the search functionality. I was just wondering if there’s a built-in way to pull the document name if you have the post ID.

    Plugin Author bhaldie

    (@bhaldie)

    as stated above the answer is no, the is no built in WordPress functionality to get the mDocs title, it would have to be built into mdocs.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Retrieve Document Title for Search Results’ is closed to new replies.