Try this…
<?php //prevent this div from displaying for pages:
if ( get_post_type() != 'page' ) : ?>
<div class="searchdate"><?php the_time('F jS, Y') ?></div>
<?php endif; ?>
The is_page()
conditional tag only checks if currently displayed content is a single page view. Nothing for you at this point. See http://codex.wordpress.org/Function_Reference/is_page
Related Posts:
- Why do I need to use The Loop on pages (inside page.php etc)?
- posts page – different lengths of excerpt
- Multiple loops in same page, without duplicate content
- Search widget breaks when using multiple loops?
- Private Posts/Pages & Search
- page.php showing loop of posts and not page content
- Multiple loops are not reset
- Display Posts on Custom Page
- Multiple Loops Breaking Pages
- How to add add more properties to WP_Post object in search results loop
- Total number of posts in query (category/tag/author/search results/main page…)
- WordPress Query Posts From Category Post on Static Page
- Pagination for normal (standard) posts on a page with a custom loop?
- Changing wp_link_pages() to “Next Page” and “Previous Page” buttons?
- posts going to 2 pages/categories only show up in 1
- What would causes search to return incorrect results?
- I want to add another search box on posts page in dashboard
- How to show only homepage in google results instead of privacy, contact pages
- How to distinguish pages created by woocommerce?
- Posts are not showing up on next page.
- Where are my posts linked to? I keep getting a Not Found Error, and I have no single.php page
- Related posts by searching post tags of single post as terms
- The loop: more posts than I want to fit on one page
- Redirecting posts in WordPress to a specific page
- When and how will php code in a user made WordPress page be executed?
- What function does the loop of displaying posts?
- Should we trust the post globals?
- how to limit edit_form_after_title hook to page and post edit only?
- Count singular post views automatically
- Looping through posts per category gives same posts for each category
- Change WordPress post-state in Admin Area
- how to hide specific post from google search
- How to have different content in the loop and single
- how to show all post in my page-grid.php template page
- eBooks download website, page or post?
- Can I hide a specific post from latest posts page?
- Display Latest Post from all Categories
- How to show post(excerpt) from specific category on wp page?
- How To Keep Posts from Being Displayed Two or More Times on My Homepage? [closed]
- custom wordpress post loop – hide iframe content
- wp_query ‘s’ parameter does not work with custom post type
- Creating a Page of Posts
- How to filter posts that belong to a specific category only if that is the only category
- Most recent post from another database
- post-page: reference to parent page?
- Dashboard :10 Last draft page and 10 last pending review page (metabox)
- Child_of not displaying all children posts.. via get_posts
- How to include the latest post of a specific category on a matching page
- post categories
- What’s the best way to render Visual Composer in posts, not pages?
- Trying to use AngularJS with WordPress without any API
- Pagination with an array of post objects?
- Overwrite posts/pages via import
- How do I stop the loop from repeating in my category template?
- Is there a way to specify an extra class for a post or page with no title?
- Get Value of Post before
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- disable Tab post on nav-menus page (Admin)
- Second get_permalink inside loop points to wrong URL
- Use Click Image to Play Youtube Video in a WordPress Loop
- The_excerpt() doesn’t parse – how to change that?
- Trying to edit archive.php to only show post extract, with featured image
- Extracting relevant tags associated with that particular single post only
- Why this function doesn’t works without the_post?
- Show posts by quarter
- Make ‘blog’ page show content as well as posts underneath it
- Cant’ Grab WordPress Built-in Posts Through Loop
- Setting limit to posts or page creation
- Using Posts Like a Page
- post/page content
- WordPress Architecture as a CMS – Posts & Pages
- Is it to possible to insert a page in the post depending on the category ofthe post
- How can I add a page that shows posts from a single category?
- Automatic duplicate/copy of post to a related page in WordPress
- Yoast breadcrumb URL shows category instead of the page
- Current post categories and subcatecories outside of the loop
- Nestling Posts Under Page & Justify Text
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- “read more” redirects to the wrong page
- Disable pagination in posts and pages
- How do I make it so that new posts within a certain category go into a certain page?
- List Authors For Current Category
- Display the latest post from some selected authors
- Add custom class to existing menu items from custom meta
- Allow users to create their own page/s
- How to use extract shortcode in loop?
- some posts being displayed as pages
- Make Show Notes for Individual Podcast Episodes Easy to Find (multiple URL’s?)
- Get part of a page url
- can’t post immediately
- Displaying only posts from a certain category on my custom page template
- Displaying posts on Homepage
- WordPress posts loop pagination – first page return 125 posts instead of 10 and the rest return 10
- The post order is different for logged-in and non-logged-in users? [closed]
- WordPress “Posts Page” isn’t showing template dropdown
- Adding Count Post in Page
- How to have 2 posting pages on a blog
- Custom post order returning posts from other categories
- change page name on page list
- CSS code for “inserting a custom post divider” after each post