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

  • Home
  • SEARCH
  • 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 1013765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:09:16+00:00 2026-05-16T10:09:16+00:00

I am coding a wordpress theme for a magazine. One aspect of the site,

  • 0

I am coding a wordpress theme for a magazine. One aspect of the site, is that the homepage is static, and it features the current issue of the magazine in one area of the homepage. I need help figuring out the most practical way of replacing content for the most recent issue on the homepage.

Basically, every month, an image, as well as a title and a short paragraph of text will change on the homepage. My homepage is a static page (from a template). I would like the client to be able to change the picture/text from the back end of wordpress. That said, is the best way to go about this is to write a custom post type?

This is unrelated to the blog (posts section). There is probably a very simple way of going about this. Any ideas?

  • 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-05-16T10:09:16+00:00Added an answer on May 16, 2026 at 10:09 am

    YES! Custom Post types was the solution. The answer is fully outlined here:link text

    Basically, I added this to my functions.php file:

    add_action( ‘init’, ‘create_my_post_types’ );

    function create_my_post_types() {
        register_post_type( 'current_issue',
            array(
                'labels' => array(
                    'name' => __( 'Current Issues' ),
                    'singular_name' => __( 'Current Issue' )
                ),
                'public' => true,
                'exclude_from_search' => true,
                'supports' => array( 'title', 'editor', 'thumbnail' ),
            )
        );
    }
    

    And then added this into my homepage.php file:

    <?php $loop = new WP_Query( array( 'post_type' => 'current_issue', 'posts_per_page' => 1 ) ); ?>
    
                    <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
                        <?php the_post_thumbnail( 'current-issue' ); ?>
                        <?php the_title( '<h2><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?>
                        <div class="readmore" style="margin-top:4px">
                         <a href="#">Read More</a>
                        </div>
                        <?php the_content(); ?>
    
                    <?php endwhile; ?>
    

    It worked perfectly!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am coding this layout as a wordpress theme and having a slight problem
I am building my first wordpress theme and was hoping that when the user
Our coding standards ask that we minimise the use of C# var (suggests limiting
Here's a coding problem for those that like this kind of thing. Let's see
I'm helping a colleague with a recurring issue that's just started happening to multiple
I am running an ecommerce theme on wordpress on a hostgator server, and coming
I’m developing a site heavily based on jQuery and involving WordPress. Is there any
I ran into a slight coding problem with WordPress template. This is the code
When coding web services, how do you structure your return values? How do you
In coding a traditional MVC application, what is the best practice for coding server-side

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.