figure2
Forum Replies Created
-
Doesn’t appear to be.
content-single.php:
<?php /** * @package Generate */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemprop="blogPost" itemtype="http://schema.org/BlogPosting" itemscope="itemscope"> <div class="inside-article"> <header class="entry-header"> <h1 class="entry-title" itemprop="headline"><?php the_title(); ?></h1> <div class="entry-meta"> <?php generate_posted_on(); ?> </div> <section class="page-header-image-single"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'medium' ); } ?> </section> <!-- .entry-meta --> </header><!-- .entry-header --> <?php do_action( 'generate_after_entry_header'); ?> <div class="entry-content" itemprop="text"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'generate' ), 'after' => '</div>', ) ); ?> </div><!-- .entry-content --> <?php do_action( 'generate_after_entry_content'); ?> <?php do_action( 'generate_after_content'); ?> </div><!-- .inside-article --> </article><!-- #post-## -->single.php:
<?php /** * The Template for displaying all single posts. * * @package Generate */ get_header('xtc'); ?> <div id="primary" <?php generate_content_class();?> itemprop="mainContentOfPage"> <main id="main" <?php generate_main_class(); ?> itemtype="http://schema.org/Blog" itemscope="itemscope" role="main"> <?php do_action('generate_before_main_content'); ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'single' ); ?> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || '0' != get_comments_number() ) : ?> <div class="comments-area"> <?php comments_template(); ?> </div> <?php endif; ?> <?php endwhile; // end of the loop. ?> <?php do_action('generate_after_main_content'); ?> </main><!-- #main --> </div><!-- #primary --> <?php do_action('generate_sidebars'); get_footer();Well it sort of worked. It got rid of both meta slugs rather than just keeping one. Is there any way to target the duplicate slug while leaving the first one intact?
Tom, I took a 2nd look through all of my template files and found at least 2 other instances of the footer containing the
generate_entry_meta()function. I removed all instances which still didn’t get rid of the duplicate meta slug.My functions.php file only contains a copy of the construct logo function from template-tags.php because my client wanted his phone number below the logo.
Here is a screenshot of my theme file structure. As I mentioned, I looked through all of the template files to try and spot any problems with no luck. If you want to have a look yourself, I zipped up all the PHP files here.
Thanks Tom, Sorry for the delay in getting back to this thread. I’ve had a crazy week.
I removed the entry-meta footer but the duplicate category and tags slug is still there.
Here is what is currently on my content-single.php file:
<?php /** * @package Generate */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemprop="blogPost" itemtype="http://schema.org/BlogPosting" itemscope="itemscope"> <div class="inside-article"> <header class="entry-header"> <h1 class="entry-title" itemprop="headline"><?php the_title(); ?></h1> <div class="entry-meta"> <?php generate_posted_on(); ?> </div> <section class="page-header-image-single"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'medium' ); } ?> </section> <!-- .entry-meta --> </header><!-- .entry-header --> <?php do_action( 'generate_after_entry_header'); ?> <div class="entry-content" itemprop="text"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'generate' ), 'after' => '</div>', ) ); ?> </div><!-- .entry-content --> <?php do_action( 'generate_after_entry_content'); ?> <?php do_action( 'generate_after_content'); ?> </div><!-- .inside-article --> </article><!-- #post-## -->In order to not lose the modifications I made to content-single.php, what part of template-tags.php would I need to put into function.php?
Forum: Fixing WordPress
In reply to: Category and tags slug appearing twice at the bottom of postHere is a link to the screenshot: https://www.markhannondesign.com/clientJobs/cat-tags-duplicated.jpg
My sincere apologies. I had meant to update this post. The problem was resolved. After an exhaustive google search, I landed on a page that mentioned the “Inventory” tab for each of the products. Specifically it said to look at the checkbox at the bottom of the Inventory section: “Enable this to only allow one of this item to be bought in a single order”
This checkbox was on by default and I hadn’t noticed it. Once unchecked, everything worked.
Forum: Requests and Feedback
In reply to: Modernizing the built-in WP galleryNoted.
Forum: Requests and Feedback
In reply to: Modernizing the built-in WP gallerySorry Jan, I didn’t know. Does this negate my point?
Forum: Plugins
In reply to: [External Media] Plugin isn’t working for Google DriveResolved
Forum: Plugins
In reply to: [External Media] Plugin isn’t working for Google DriveThanks minnur. I see that you are not the author of these instructions I was following but you may want to reach out and ask the author to include Google’s added requirements. Otherwise you are likely to have a lot of frustrated people contacting you.
Alternatively, you could add your own set of detailed instructions on your installation page.
Forum: Plugins
In reply to: [External Media] Plugin isn’t working for Google DriveHello minnur,
Thanks. I have emailed you a temporary login to our website and the google account.
Forum: Plugins
In reply to: [External Media] Plugin isn’t working for Google DriveUnderstood James.
Forum: Fixing WordPress
In reply to: Can’t make changes to moved WordPress websiteDamn! That fixed it. Thanks for being a sounding board Steve.
