You probably want one of the conditional tags.
Possibly is_single()
, or maybe get_post_type() == 'post'
depending on how complex your setup is.
Related Posts:
- How do I represent ‘chunks’ of content within WordPress?
- Blog posts on one subdomain, pages on another
- How can I import users into WordPress?
- Stress testing WordPress
- Can I use wordpress for a non-blog site?
- Can I / Should I use WordPress as a CMS for my Flash application
- WordPress as Backend, Laravel Front End: How to connect Routes?
- What is a good way to present templated content in WordPress?
- Using wordpress for a four-page website may be an overkill?
- Searching Only Blog Posts From a WordPress Site’s Main Posts Page?
- WordPress product catalog site [closed]
- What are the advantages of WordPress over other systems?
- Putting main WordPress blog under a different folder name
- Is a complex site possible with WordPress?
- Convert link in WordPress 3.2.1
- WordPress for a business catalog site
- Why are wordpress posts not hierarchical?
- WordPress as a CMS – best way to decouple publishing/front-end
- Updating my wordpress CMS to 4.7 gives me a blank HTML area during the upgrade process
- How to display only posts assigned to a particular, isolated, subcategory
- Custom post type content using custom fields without template
- Advanced templating / WordPress as a CMS questions
- Content management for static pages
- WordPress in Drupal
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- Is wordpress truly capable of anything other than blogging? [closed]
- WordPress as template engine
- Is wordpress a library with a default GUI?
- Editing Code for CMS *** Fixed – my own stupidity – I appologise and thank everyone for their help [closed]
- Show a different link based on IP
- Can I manage content of my custom site using wordpress?
- Get Drupal user into WordPress
- How do I add open graph tags? [closed]
- Can’t access Dashboard after WordPress 3.3 Update?
- Heterogeneous content on a page
- Best way to create a page outside of the pages list
- Multiple editable content on page
- Set a WordPress website’s language without affecting the back-end
- Can WordPress used as a CMS? [closed]
- Officially, what is typename for?
- Argument list for class template is missing
- What does “missing template argument” mean?
- What does “missing template argument” mean?
- Difference of keywords ‘typename’ and ‘class’ in templates?
- Can you recommend a .net template engine?
- Flask raises TemplateNotFound error even though template file exists
- How to use Class
in Java? - “Implicit instantiation of undefined template” when forward declaring template class
- “used without template parameters”
- C++ template constructor
- error C2106: ‘=’ : left operand must be l-value
- c++ –
- use of class template requires template argument list
- ‘if’ statement in jinja2 template
- C++ Templates – LinkedList
- C++ template – error: expected initializer before ‘<' token
- template argument deduction/substitution failed, when using std::function and std::bind
- WooCommerce action hooks and overriding templates
- Class template inheritance C++
- got “cannot appear in a constant-expression” when using template
- In C++ what does template<> mean?
- non-member function cannot have cv-qualifier
- How can I add reflection to a C++ application?
- Unrecognizable template declaration/definition
- error C2244 unable to match function definition to an existing declaration
- error C2995: function template has already been defined
- invalid use of template name without an argument list
- Set variable in jinja
- Struct with template variables in C++
- Here is some error with my .h file which show [Error] unterminated #ifndef when I include my class template in it
- Template constructor in a class template – how to explicitly specify template argument for the 2nd parameter?
- Is it possible to combine a WordPress template (Semplice) and some HTML & CSS pages?
- WordPress: save `get_template_part()` to variable
- Tips for using WordPress as a CMS? [closed]
- Jquery Slider for profile template
- Create custom page templates with plugins?
- Get name of the current template file
- How do you find out which template page is serving the current page?
- How to create custom URL routes?
- How to change the default registration email ? (plugin and/or non-plugin)
- Can I assign a template to a custom post type?
- Opinions and recommendations on the best barebones base theme [closed]
- How do I get the size of an attachment file?
- if ( is_home() && ! is_front_page() )
- Is there any way to use get_template_part() with folders?
- Get custom post_type’s archive URL
- Custom templates not showing up in template dropdown
- How to rearrange fields in comment_form()
- Get page id by template
- single-{$post_type}-{slug}.php for custom post types
- Implementing a CrunchBase.com Clone using WordPress?
- Page template query with WP_Query
- Style custom columns in admin panels (especially to adjust column cell widths)
- To close or not to close php
- What’s the difference between home.php and index.php?
- Pass PHP variable to javascript
- Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
- Custom single template for a specific category
- Adding Page Attributes Metabox and Page Templates to the Posts Edit Page?
- How does printf( __( ) ); work?