This is because you haven’t mentioned post_type here and by default post_type
is 'post'
and hence it is missing the pages,
add the below in your query
'post_type' => array( 'post', 'page' )
Like this
$articles = new WP_Query( array(
'showposts' => -1,
'tag' => $tag,
'meta_key' => 'date',
'orderby' => 'meta_value_num',
'order' => 'DESC',
'post_type' => array( 'post', 'page' )
)
Related Posts:
- Proper way to get page content
- Get wp_get_attachment_url outside of loop
- WordPress parent select need to be removed
- How to create wordpress page that shows posts with specific tags?
- How to exclude shortcode from specific page IDs if it’s set to global
- How to get the excerpt of a page before more tag?
- How to echo excerpts with wp_list_pages?
- Page displays content from different query?
- How to make tag post listing page working?
- How to retrieve attachments from child pages of a specific Page?
- Custom page with queries returns 404
- Query specific Pages
- How to get tagged pages to show up with tagged posts?
- Show content if page is a grandchild of top level page
- Get all pages to display at once
- trying to add a author value in wp page links?
- Attach link to pages accoding to tags
- Search Page: activate html code if the tag is on the page
- Filter posts by author selected in page
- Tags are automatically converted if they match post names. Stop It!
- Display list of posts with x tag within a page?
- Add tags to long page that is broken up into subpages?
- How to get a list of pages (not posts) with specific tags?
- How to disable posts and use pages only
- Custom SQL Query for WordPress page
- Get next/previous cousin page
- I want only my sub-pages to be clickable in the navbar
- How restrict page for users logged? [closed]
- Only allow new subpages to be created
- Hide Visibility Option From WordPress Publish Metabox
- How do I turn comments off for pages, but not posts?
- How to make nested page structure?
- List Child Pages of Parent Parent Page (Child pages from Grand Parent)
- How to add meta boxes to Pages
- Form action redirect to the same page
- How do I create a separate page for each author?
- Overriding the currently selected menu item
- Missing parent page attribute
- Hiding Page by Title from Editing
- Two Search pages, One search form
- Get page by its ID and display it on another one
- creating and styling a within a page
- How do i change page template in bulk?
- What are trackbacks?
- How to enumerate a list of posts?
- How can I redirect to my custom page without loading the Dashboard itself?
- Remove ID page from wp_count
- category slug and page slug same
- New user Registration data imported into Page
- Could be a namespace conflict (?) with login form and register form on the same page
- The concept of non-blog content
- Updated WordPress, now getting errors on site
- Edit Parent page drop menu when creating a page
- Get parent of current page
- How to list a page tree?
- How to create a page and display only the posts with a specific custom field value?
- Attachment pages stealing page slugs
- How to add an external php page with wordpress?
- Exclude pages by menu order
- WordPress pages not working out correctly with HTML
- Change page name in admin list
- How to exclude authors from get_pages()
- Folder wordpress page redirect
- Dynamic page with comments
- How to rewrite a page url
- Manage content on multiple pages synchronysly?
- Display pages in alphabetical order
- Get rid of “comment” field on non-blog pages [duplicate]
- How to control display of page lists on sidebar that doesn’t have childrens
- Is there a template tag/function for getting the URL (or slug or name or ID) of the blog page when using a “static” front page
- Problems in creating a static site with WordPress
- Creating new page/tab in groups section not working! [closed]
- Add separate list of pages under Admin
- add title to widgets of wordpress
- Custom user tables not working after migration
- remove “Edit” from select pages
- Add custom action to the page listing screen
- How to list pages from an author?
- How can a .css file be applied to a virtual page?
- WordPress blog posts template bug [closed]
- Checkboxes to automatically create pages when I activate a theme
- Cannot update page – with too many characters?
- Is it possible to embedd this web app to my website [duplicate]
- Using external DB within wordpress
- Exclude Posts from a Widget
- My pages disappeared from the list
- Pre-populating new Page creation with shortcodes
- WordPress Pages “allow comments” meta option can’t be checked
- How to display time when page is created and edited
- Loading internal page
- Firing page_publish where page is child page
- Google indexed pages for one page site
- Parent for a single (single.php)
- Create a new page for each form selection
- How can one get page by pagename if it is a child page?
- Archive with specific keyword by category sorted by date
- How to pass the Querystring in pages?
- Is it possible to keep the page title from actually appearing at the top of the page?
- Edit the text location of a form
- Fresh WordPress installation not able to simply show page content