All that I can think of is to verify that you are in fact on a single post page ( echo out an else conditional, make sure that you are actually hitting your block of code ).
if ( is_single() ) {
echo 'Hello World, Is Single';
} else {
echo 'Not Single';
}
Where exactly are you placing the code (Header, Body, Footer, which template file)? Are you using any frameworks like Carrington ?
Related Posts:
- Software for WordPress Theme and Plugin Development? [closed]
- How to override pluggable function in theme?
- Should we use get_template_part() in functions files instead of include_once?
- Reset positions of metaboxes in admin
- WordPress Settings API error
- Remove the word ‘Categories’ from wp_list_categories
- Using Bootstrap in themes
- Add a dropdown to theme customizer
- design and development workflow
- How to control initial wp_head() output?
- enqueue script for specific shortcode
- Any walker causes blank menu?
- How to change post thumbnail title and alt attributes to post title?
- Why might $input (Settings API) be coming through empty?
- add generated stylesheet from parent theme after child-themes style.css
- Creating Page Based on Category
- How to check if post has any tag?
- using wp_enqueue_script to attach jquery-ui
- Merging PHP download script into `functions.php`
- Should use widgets in this case?
- Can not Remove Archives and Meta from Sidebar
- Get last modified date for menu link
- Similar Posts – NO plugin
- How to add multiple custom widget areas
- A theme that follows all the best practices to learn from?
- WordPress how to override function adjacent_posts_rel_link_wp_head() in link-template.php the correct way
- Can wordpress run in root of existing php site with no theme on index.php but all other WP posts/pages?
- Change file name from wp_generate_attachment_metadata
- Change setting name in Customizer and keep the data
- CSS won’t style output of wp_nav_menu() correctly
- Custom theme not visible in Appearance
- Use debugging for add action events
- Obtain full v2 REST url?
- Creating multiple hooks for theme
- after_setup_theme, Global Variable and Theme Customizer
- Including Javascript options
- Show warning if plugin is missing
- How to make WP admin recognize a newly created child theme?
- Does WordPress theme customisation API support section hierarchy?
- Custom Theme Bootstrap
- Can’t show custom post thumbnail sizes as background images
- How to provide support for [gallery] shortcode?
- WP_Customize_Color_Control omitting # symbol
- Theme translation not applying
- How to add filter the post thumbnail before save in database?
- Custom theme development additional pages
- How to add material design css in wordpress and woocommerce
- How to set the currently active page in the menu including parents
- changing blog title to an image using filter function in child theme
- What is the safe way to print tracking code / pixel code before tag or tag
- WordPress taxonomy and archive custom class
- Using My Own Classes On Wp Unit Tests
- Acivate all themes multisite wide automatically
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Would to use AJAX to get an option from the database and use it in a jquery setup or is there an alternative to consider?
- Website pagespeed problem
- Theme support title tag – how to replace the default WP separator (with a filter)?
- Why are some of my menu items not displaying on my menu?
- Managing WordPress Theme
- ajax response -1 in wordpress theme
- next_posts_link and previous_posts_link problem
- theme style is applied on the dhasboard rather than the website
- Moving post title down the page / Removing a block from a post
- I want to change background image of my wordpress site on particular post type
- Hestia Child theme creation
- What $handle does WordPress use for a theme’s implicit style.css?
- CSS added through customizer neglects the need of a child theme?
- How to add custom class to get_avatar()
- Output richtext metabox value
- Twenty Twelve Author not displaying
- Read more doesnt work with query posts
- help needed for suit designing tool
- Default PHP document / names needed for a WordPress theme?
- Dynamic Image Links Depending on Excerpt/’Single Post’ View
- Custom fields for custom post types
- How can I sort my loop based on meta data, using a form?
- What is the_permalink() on a category page?
- How to modify theme content in Thematic?
- Customizer API Multi Sections in single Panel
- Sidebar not displaying (theme development)
- WordPress theme options checkbox default checked state
- Custom themes that won’t work when theme is changed
- WordPress Theme: What is the right way to put inline CSS loading from a CSS file
- Cold Fusion to WordPress
- Creating a theme just to deploy a single page
- How do I build a WordPress Profile/Author Header?
- Make a custom field in admin post.php read only
- Create settings field on button click
- get_posts is duplicating
- How to remove menu from WP-Admin menu
- apply_filters to featured image
- How do I move menu to the bottom in Custom Community theme?
- How do I get information about a page, such as featured image, except, and title?
- WordPress Loop with Custom Post Type for Bootstrap Accordion [closed]
- How do I make it super customisable?
- Theme.json: creating different sections of the color palette
- Insert gutenberg blocks into template
- Bootstrap 4 mobile menu not working for WordPress Development
- How to make it so I can “use” template parts in (classic/full) site editor
- How do I send out an update for my custom wordpress theme?