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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:23:13+00:00 2026-06-01T05:23:13+00:00

I write a custom type for wordpress which is contain a textarea. I can

  • 0

I write a custom type for wordpress which is contain a textarea. I can save it and also i can access from single view. But i want to show them line by line if author save it line by line. But it’s not showing them line by line, it shows all of them as a single line.

Here is my single.php’s custom meta show codes;

             <div id="yemek_resim">
                    <?php if($tz_image_display == 'true') : ?>

                    <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) : /* if post has post thumbnail */ ?>

                    <?php the_post_thumbnail('single-large'); ?>

                    <?php endif; ?>

                    <?php endif; ?>
                    </div><!-- yemek_resim -->
        <div id="yemek_malzemeleri">
        <?php
        $malzemeler = get_post_meta($post->ID, 'ofa_yemek_malzemeler', true);
        echo esc_attr($malzemeler);
        ?>
        </div><!-- yemek_malzemeleri -->

here yemek_malzemeler’s content come from a textarea and author can write multiline content. But at site, they seem as a single line…

  • 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-01T05:23:14+00:00Added an answer on June 1, 2026 at 5:23 am

    I resolved the problem by using <pre> </pre> tags. thanks for your care.

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

Sidebar

Related Questions

So I'm trying to write a function that folds a custom data type which
I'm trying to write a custom getter for a property with type ABRecordRef (which
I want to write a custom validator which doesn't do anything before the user
I am trying to write a custom tag. I can write attributes; however, I'm
I'm trying to write a custom servlet (for AJAX/JSON) in which I would like
as question says, i want to write custom data type data of a class
I'm learning to write custom type conversions in C# and I have a question
I am assigning a string to a custom type I have declared, which I
I'm trying to write a custom fadeTo(component, x, y):void method, which takes an arbitrary
I'm running WordPress and I'd like to write a custom query that would show

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.