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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:59:56+00:00 2026-06-15T16:59:56+00:00

When I create post wordpress not save spaces between lines: Code: <div class=postas> <?php

  • 0

When I create post wordpress not save spaces between lines:

Code:

    <div class="postas">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <p><?php the_content(); ?></p>
    <?php endwhile; endif; ?>
    <!-- End Main Content -->
    </div>

WordPress only add &nbsp; symbol if I press double-click Enter button, but if I second time edit this post &nbsp; symbols disapear

  • 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-15T16:59:57+00:00Added an answer on June 15, 2026 at 4:59 pm

    WordPress does some auto-formatting on your posts. The auto-formatting occurs when you save your post, or if you swtich between the HTML and Visual modes in the content editor.

    If you are trying to do something that gets erased by this formatting, you may want to try disabling the auto-formatting WordPress includes.

    You can do this by installing this plugin: http://wordpress.org/extend/plugins/ps-disable-auto-formatting/

    After installing the plugin, you can choose to enable/disable formatting in your Dashboard Settings.

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

Sidebar

Related Questions

Help, I'm trying to create a new post in my wordpress blog with custom
I am trying to create a zip file from post attachments in wordpress .
I'm using this piece of code I found ( http://impnerd.com/wordpress-hack-add-post-images-to-your-homepage ) to display the
I'm looking to achieve something like Wordpress does when you create a new post.
I'd like to create PDFs dynamically from content within a Wordpress post (slightly simplified
I am trying to create a list of sibling pages (not posts) in WordPress
I'm trying to create an if statement in PHP that prevents a single post
I want to create a wordpress plugin that can catch POST/GET requests to a
I am building a new WordPress theme using register_post_type to create a custom post
i'm trying to create a portfolio website using wordpress, each post has view costum

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.