Found out how to do it, I added the following in content.php
. I added the second elseif statement and simple put the word Document in there before it displays the title of the page.
if ( is_single() ) {
the_title( '<h1 class="entry-title">', '</h1>' );
}
elseif (get_post_type() == 'attachment' ) {
the_title( '<h1 class="entry-title">Document: <a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
}
else {
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
}
Related Posts:
- Search by Attachment ID
- Getting Path To Uploaded Attachment Image After Upload
- How to make search engine index PDF files? [closed]
- How to override normal WordPress search in Buddypress? [closed]
- Search and replace text across all posts
- How would implement StackExchange ‘Questions with similar titles’ for the FAQ on my wordpress site
- Moving image attachment from post to another?
- dynamic page not indexed
- How to get posts by content?
- Delivering a file instead of wordpress page
- How can I get an image from the uploads dir and enter it in the media library? [closed]
- WP-PageNavi plugin doesn’t work with multiple pages of search results
- Problem with Search Results in WP (not displaying the full posts)
- Is there a plugin that allows a user of your site to get an email from you with an attachment?
- How to get all attachment image from post ?? WordPress
- How to get custom field image url of specific size
- How to improve WordPress search
- How can i change an image’s author?
- Converting a simple plugin to be placed inside of functions.php
- Creating search filter through plugin
- How do I add advanced custom fields / meta fields to Elasticsearch? [closed]
- plugin to search entire posts, blogs, forum, users [closed]
- Set attached to state
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- How to get images from EDD post?
- How can I get full attachment url from wp_get_attachment_metadata?
- How to change ID of an attachment in wp_posts and its related tables correctly?
- How can I reuse the WordPress search form for a custom plugin / widget?
- Converting Attachment to Images?
- Get the url of the full sized attachment image using post ID?
- Custom Taxonomy Tag Search
- What causes an Unexpected HTTP Error within install plugins?
- Randomize attachment IDs
- What is the best way to mimic a search query within a plugin
- Is there a way I can find wordpress posts that don’t contain a word?
- Limit Number of Taxonomy Terms (Images) Displayed
- Search is not working on plugin directory
- Search Everything plugin integration
- Media is not attached after import
- AJAX search posts and pages
- How to change File URL in file uploaded to s3 compatible storage with self written plugin [closed]
- Search for categories
- AJAX search as you type? [duplicate]
- WooCommerce search products between price range using WP_Query
- Send admin an email when a user’s search has no results
- Integrate Algolia to WordPress site
- How to multiply a post to test internal search results?
- How to set “split_on_numerics” to false in ElasticSearch mapping using ElasticPress? (for proper SKU search in WooCommerce) [closed]
- Woocommerce Backend Search by Title and SKU
- Search and Filter Plugin – How to disable redirection
- WordPress Multi-Step Product Search
- Custom search search does not work?
- JSON API Plugin not showing Attachments id reused
- Creating a search form and displaying results
- Attachments broken after giving WordPress its own directory
- Is it save to replace with in WordPress search form
- “After file loaded” action
- WordPress search shows protected content
- Best approach to make all tags searchable by the wordpress search function
- How to search post titles with whole words only, but not the exact word only?
- RSS feeds for specific topics
- How to add the search page link to the anchor tag?
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- submit two file input fields in the same form
- Get all image in media Gallery with alt/title?
- How to hide an option from dropdown in filter module
- How do I add a medium to the WordPress database with my own plugin?
- WP search box on page not finding .PDF files
- Redirect to a page while maintaining search query parameters without causing an infinite loop
- Search results to point to specific section?
- Search in WordPress
- Content disappears when searching with Search & Filter plugin
- How to exclude a part of a page in search results
- how to add navigation icons in specific template?
- multiple string replace of post’s content for large data
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- How to make wp multisite subdomain exist search
- Remove Url Parameter WordPress
- How can I remove this sidebar from my Search Results page?
- History of page, interval of years
- Include post_date in search
- Attachments plugin cannot click media library button [closed]
- How to force regenerate thumbnails in WordPress posts?
- How to Insert images in WordPress using code
- How to hook into search results template or query?
- Add “selected” class to custom taxonomy dropdown search
- WordPress Search return wrong results
- How to show post attachment image
- Is there any simple wordpress search template that works with existing searchforms?
- Extend WordPress Search
- how to sort results by last day update at search result in plugin installer?
- Jigoshop search taxonomy
- Building custom pages with a video player
- Strange Search Query Appearing on Google Index – “/?q=Save+Us+From+Berlusconi”
- Dave’s WordPress Live Search only works when logged in as admin
- wordpress Search function is not working
- Multi-step, live updating search
- Can we install 3d product configurator into wordpress
- LiteSpeed cache image Optimization
- How to set an exact search box in tablepress plug-in