explain why is_single doesn’t work

Looks like you’re trying to display comments for a single post that has comments disabled. You should find if ( comments_open() ) statement just one line below. Paste your code there and it will work just fine: <?php if ( comments_open() ) : ?> <div class=”comments-link”> <?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘Leave a reply’, … Read more

Having single posts appear under the blog homepage and highlight menu items properly?

You can edit your permalinks like so: /be-the-first-to-care/first-to-care-blogs/%year%/%monthnum%/%day%/%postname%/ I’m not sure why blog posts work like that, maybe somebody can give you further insight but the above works for me. You can edit your permalinks via: Admin Panel -> Settings -> Permalinks Then click the “Custom Structure” radio button and fill in the textbox with … Read more

Try to showing product file size on product single page

Solution: Change from: $path = str_replace( site_url(“https://wordpress.stackexchange.com/”), ABSPATH, esc_url($each_download[“file”]) ); to: $ProductID = attachment_url_to_postid( $each_download[“file”] ); $path = get_attached_file( $ProductID ); And now work perfect…

how to loop through this in blog single?

It appears there is a syntax error with this line: if ( have_posts() ) while ( have_posts() ) : the_post(); You are missing a colon after ( have_posts() ). If it’s not a theme related issue as mentioned in the comments if you change it to: “if ( have_posts() ) : while ( have_posts() ) … Read more