Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8776395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:02:39+00:00 2026-06-13T19:02:39+00:00

First off I created my own theme from scratch. I’ve been trying to figure

  • 0

First off I created my own theme from scratch. I’ve been trying to figure this out all day yesterday. Ended up using a couple of twentyelevens and twentyten’s files just to accomplish this. Then deleted them cause there was no success. All I want to do is remove certain text such as “Filed Under” and “Posted By” that appears at the bottom of my single posts page. I want the Standard Single Posts Page to have the Meta Data, while the Gallery Single Posts Page doesn’t have Meta Data.

I tried to use the loop.php, loop-single.php, loop-gallery.php, content.php method but nothing was working for me. Where can I start to get these two different post formats to display differently on their single pages?
Is there anything I need to add to my functions.php file just to make this work?
Do I need to recreate the loop files?
Please help…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:02:41+00:00Added an answer on June 13, 2026 at 7:02 pm

    If ‘gallery’ is a category, you could edit your single.php template and use is_category():

    <?php if ( in_category('gallery') ) : ?>
        <!-- Single post style for gallery posts -->
    <?php else: ?>
        <!-- Normal single post style -->
    <?php endif; ?>
    

    If it’s a custom post type, you could use get_post_type() in single.php and use its result in a condition, e.g.

    <?php 
    $post_type = get_post_type( $post->ID ); 
    
    if ( $post_type == 'gallery' ): ?>
        <!-- Single post style for gallery posts -->
    <?php else: ?>
        <!-- Normal single post style -->
    <?php endif; ?>
    

    If it’s a post format, use get_post_format(), e.g.

    <?php 
    $post_format = get_post_format( $post->ID ); 
    
    if ( $post_format == 'gallery' ): ?>
        <!-- Single post style for gallery posts -->
    <?php else: ?>
        <!-- Normal single post style -->
    <?php endif; ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off tags wont work. I say this because i create 4 buttons all
First off I'm new to Android and Java.. I have been trying to add
First off, I've been reading this site for years now and it's helped me
I am trying to create a very basic sprite image. First off i have
First off, I'm coming (back) to Java from C#, so apologies if my terminology
First off I use this code to make the navigation bar always stay fixed;
I am trying to figure out how to create an optimal solution for my
Hi fellow StackOverflow guys, First of all this is on Magento 1.7.0.2. I have
First off my background: I'm new to Java coming over from Ruby. If that
First off, I'm aware that there are many questions related to this, but none

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.