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 8754605
In Process

The Archive Base Latest Questions

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

My code : <div class=date><?php the_time(‘d’) ?> <?php the_time(‘M’) ?></div> <h2 class=titolo style=min-height:0;><?php the_title();

  • 0

My code :

<div class="date"><?php the_time('d') ?> <?php the_time('M') ?></div>
<h2 class="titolo" style="min-height:0;"><?php the_title(); ?></h2>                                                                        
<div class="descrizione"><?php the_content(); ?></div>

time and title are correct. But the content is empty?

In fact, trying :

$pr=get_posts();
print_r($pr);

I see both title and description inside the array. Where am I wrong?

  • 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-13T13:39:39+00:00Added an answer on June 13, 2026 at 1:39 pm

    try this

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div class="date"><?php the_time('d') ?> <?php the_time('M') ?></div>
    <h2 class="titolo" style="min-height:0;"><?php the_title(); ?></h2>                                                                        
    <div class="descrizione"><?php the_content(); ?></div>
    <?php endwhile; else: ?>
    <div class="alert alert-warning"><h4>Warning</h4><p><?php _e('Sorry, no posts matched your criteria.'); ?></p></div>
    <?php endif; ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the code: <div class='selectAnAction'> <ul> <li class='actionSelect'><span>Select an Action</span></li> <li class='action' onclick='location.href=\/post.php?key=.$row['hash'].\;'>post</li>
here is the problem...I have just this line of code: <p><div class=author><?php echo $relevantEntry['author'].
This code attempts to dynamically switch the class of the StateContainer div from StateOne
Here is some code: var class = function(elem,div){ this.elem= elem; this.div = div; this.init
I'm trying to write a code that adds a class to a div for
Here is a simplified snippet of my code: <li id=work-5 class=work-5 class-B> <div>some other
Code on page: <div class='container'> <p> <b>Address:</b> Some address<br /> <b>Phone:</b> phone1, phone2<br />
I have this HTML code: <div class='com_box'> <div class='com_box_c'> <div class='com_box_info'> <a id='quote'>quote</a> </div>
Consider the following code: $(document).ready(function() { $(body).append(<div class='outer'><span class='inner'>Click me</span></div>); $(html).click(function(event) { var targetClass
Suppose I have the following html: This a test of <code>some code</code>. <div class='highlight'>

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.