A good place to start is with the template hierarchy flow chart. http://codex.wordpress.org/images/1/18/Template_Hierarchy.png I’m always consulting this page.
When you say modified twenty eleven, what do you mean? The image.php file is what handles image attachment pages in twenty eleven. I’m not familiar entirely with how it works, but it may be also making a call to the content-image.php file where the_content()
function is being invoked, maybe. Not sure.
Hopefully this’ll at least get you pointed in the right direction though.
Related Posts:
- Turn a URL into an Attachment / Post ID
- Delete Associated Media Upon Page Deletion
- Delete post with all files attached to it
- Is it possible to Schedule Attachments in WordPress?
- what types of order can I pass to get_posts() via orderby?
- Find the post an attachment is attached to
- media_handle_upload for local files?
- How do I detach images from posts?
- Use an attachment in multiple posts
- delete post also attachments
- Replacing all attachment links in post with media file link
- Get post id by attachment id?
- How can I export WordPress posts’ attachments?
- How to remove images from showing in a post with the_content()?
- How do I create Comma Separated list of attached image ids?
- Get post embedded image caption
- Limit amount of results returned
- post_parent is 0 when uploading new files
- Easy way to delete 70k posts and attached media?
- How to access featured image?
- Get latest posts from WordPress site without header, menu and sidebar
- Load post attached images on a single page site with fancybox
- Insert woocommerce products programmatically with featured image and gallery
- Add the description field on the attached media
- Set size for attachments
- I have a site where attachments in the wp_posts table have guid values of guid, how did this happen?
- Get all attachment by post excluding featured and content inside
- Prevent Delete Attachment by URL or When Submit
- Posts and Attachments with “Published” status in Search
- Get attachments for posts that belongs to a specific category
- Automatically attach image to post if they have the same title
- Get Image tag from content of post
- Can’t update old posts 3.5.2
- How would one change the default url structure of attachments?
- Get attachments only for this post
- Upload attachment from external site
- Reinstall WordPress while keeping attachments
- Get images from the post
- How To Download WordPress Audio Attachments
- How to get the next and previous image title from attachment or gallery?
- All images on one line for each post
- How do I assign an attachment to a post using only the REST API?
- Unable to delete attached file from folder programmatically
- How to convert attachment pages to Posts?
- Get post attachment with post id
- Delete attached images from posts
- Unable to get all the Posts Attachments
- Add in the url attachment loop the wp_link_pages of the post
- Stop images from being displayed on the front-end of the site
- How to get images only attached from edit post page
- How to prevent people from seeing an attachment to a scheduled post that’s released in future?
- How can I get a comment ID on Submit?
- Bulk Attach Or Insert Media To Post Without Opening Post Editor
- Create post from form with image
- Get Video Attachment to post
- how to edit attachments?
- Broken images after importing posts and opening in Gutenberg
- Stop WordPress automatically adding tags to post content
- Let private posts stay in status “private” after edit through “editors”
- how to get a different html for odd/even posts?
- How to display posts by current user/author in a custom page template?
- featuring old articles without messing up with the archive
- Display most recent post in category instead of archive?
- Human Time Diff, change mins to minutes
- Display the latest posts, published in the last hour, with WP_Query
- same template for multiple custom post type single
- Allowing the SoundCloud player to appear in a post excerpt
- Set attached to state
- Display the Content of a Post with qTip2
- Converting multiple loops into one single loop with pagination
- Run a function when post is deleted?
- Server-side sorting of posts
- Exclude posts w/ specific post_meta on Rest API endpoint
- Should $found_posts be returned as string in ‘found_posts’ filter hook?
- How to change wordpress dates to native language (even if the languge not available i wordpress)
- WP_Query orderby not working with meta_value_num and menu_order
- Custom WP_Query with complex ‘post_status’ argument
- Bulk delete WordPress posts with phpMyAdmin
- Show post content and title in diferent divs using WP_Query using a loop
- Check if a custom post type has already been created
- Custom WP_Query not working correctly
- Echo the number of posts being displayed
- Get post related to particular meta box? [closed]
- Exclude a category of posts in author template
- Open post within Foundation 3 Reveal
- Format array of objects to json for wp-json
- MYSQL: Create SQL query to search for string and replace
- how to filter posts by category without page load (ajax) in wordpress?
- Display specific posts based on an ID of another post
- Create posts by any logged in users
- How to add multiple(but specific) posts to different areas in one page?
- Custom Post Type doesn’t use single.php or single-{custom_post_type}.php
- Display all posts/pages in a multiple selectbox
- How to only allow post to be deleted if custom field doesn’t exist
- How to set a link to custom archieve page
- Moving Posts to a new site and maintaining URLs
- Change the default video URL in a post to shortcode format
- Cant retrieve $_POST inside page, just header
- How to limit the number of posts a user can publish based on user type
- Add News Feed to bespoke website, only to one page on whole site