If ‘gallery’ is a taxonomy item (like a category) you could create a new page template (perhaps based on index.php) and then use the get_posts() function to return a list of posts in that category.
That’s the process. Do you need more detail?
If ‘gallery’ is a post format that may be a quite different operation.
Related Posts:
- Adding general page content to page templates
- using the loop with a custom table
- Show all images attached to posts as a gallery page?
- Post gallery as carousel
- What does is_page_template() compare against?
- is_page_template not working
- When is get_template_part() preferable to simply using the template.php files?
- Ways to have multiple front-page.php templates that can be swapped out?
- Simplest way to add a second html editor to the post/page admin?
- Is including the loop necessary for page.php? [duplicate]
- Store Page Template Files in a Subfolder
- Trying to list out child pages with WP_Query
- Video Background – (php & css) – generating 404 error on page load – WordPress Theme File Structure Help
- loop not showing up when using a custom page template
- Created custom post type but selected template not staying selected
- Why is POST’ing to my WP page template producing a 404?
- Can I create a page template, use it once, then hide/remove the option to use it again?
- Are page/post IDs unique across a whole network?
- Grabbing the page template name?
- Adding the Admin Bar to a page with a custom template
- wp_title() handling of author page
- How to edit 404 content via wp editor?
- wp_redirect() does not work in custom template file
- Programatically changing template of a page
- Creating a new page template
- Unexpected results with conditionals inside template part
- Visual Editor Templates
- Pre get posts where template is not equal to one specified?
- Change content of page in child theme using plugin
- Can two custom templates be used to create a single page?
- Use the_title_attribute() for the WHERE parameter in a page template
- Find the page template of the previous page
- How to check if a specific page uses a page template?
- Conditional get template part
- Cant remove line that appears above page content
- Trying to return list of child pages for a template
- Page template without header & footer
- Page template for blog not working
- I want to duplicate homepage for all my pages
- Do I need to use The Loop on pages?
- WordPress showing 404 page template for unpublished posts
- Change Post Template based on post meta?
- Adding a Menu Page to The Dashboard
- !is_page_template not working with && operator
- Multiple get_posts() queries on one page
- Is there a way to create a template that does not have the site styling associated with it?
- Is it possible to add a child post into the parent page?
- Displaying page image in the footer automatically
- Is it okay to use page template as contact page? [closed]
- Including facebook.php in a wordpress page template?
- is_front_page and is_home are not working in page.php
- changing background color depending on parent page
- Page with posts from category doesn’t work
- Why is a renamed custom template file still showing up in the template dropdown menu?
- Display ACF if parent page has specific template
- How can I load 2 random pages?
- Creating page & post templates without template file
- Blog page wont use blog-template.php
- Function to load correct CSS for Template not working
- Change page template programmatically inside foreach
- Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
- Limit page template choice by page title or ID?
- Excluding post thumbnail from the attachment.php when using wordpress gallery
- Using conditional statements in place of custom Page templates
- Controlling the Admin panel for page templates
- Page Templates automatically showing index page contents?
- Find php file anywhere in folder and subfolder from template
- Custom Header added within Dashboard pages, is this possible with custom template files?
- different sidebars depending on template (is_page_template is not working)
- Create Page with Pagetemplate and get a post_type_object->template
- Inserting article:tags meta in html head-element, using get tags, no wp_head
- send page ID’s to another template
- Converted HTML5 to WP, How to apply converted classes to new pages (after conversion completed)
- Split Content and Gallery
- Is there a universal slug for static homepage?
- Return only one post format in index.php [duplicate]
- Custom page template displays the archive template
- Target pages using Woo Commerce single product page template
- Attachment Metadata inside of Loop
- require happens out of order
- Using a page-template to restrict access based on IP (Frontend)
- Need help in creating splash intro page using custom page template
- how to get the title, description, pictures on the page?
- Page Template CSS file not loading
- Adding secondary featured image for page_for_posts
- Decision about page templates for static pages
- Loading custom page template on a one page website
- How to use extract shortcode in loop?
- Custom page Template and Script as a Plugin
- How can I put a custom field as the link of a button shortcode?
- Display Custom Taxonomy of custom post type
- Stuck with conflicting loops on page template
- Using page template as Static Front Page
- Why do some pages on my site use the previous theme?
- Change the way wordpress outputs images or image galleries
- How to make page template with admin able to select NextGen Galleries to be part of the layout?
- How to move from page template to page template
- Background of default template showing instead of the background of custom page template
- Videopress Short Tags not working when pulling page into template
- How do I update the SEO information on dynamic pages being generated from template_include?