If this is plugin code there is NO REASON the theme would make a difference. My guess is it’s a server issue (outputting of /n) or a WordPress function that changes the /n into <br>
I would check wpautop() as I find that sometimes it’s this functions fault. See this post on the WordPress.org forum for more.
Related Posts:
- add_filter the_content str_replace after shortcode
- Correct regex for wp_embed_register_handler
- WordPress Ajax always returns a 404 error
- WordPress custom taxonomy description for each post?
- Conditional statement for parent, child and grandchild pages
- How to use SRCSET with get_the_post_thumbnail()?
- How to add a post or page tag to the list of classes appearing in the body tag’s class attribute?
- WordPress Wysiwyg Content not being displayed
- HTML table from shortcode with multiple parameters
- How do I add HTML to a PHP function [closed]
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- WordPress automatically adding html tag around PHP code
- Missing sidebar parameter “fix” – before_content
- How Display Posts on category
- How to get the POST TITLE using the POST ID?
- ACF page while loop breaks footer while loop
- Load a page into a div with Ajax
- Converting HTML Template to WordPress Theme
- Why the JavaScript code is ignored from wp editor?
- How to change redirection route to a php page for making it only accessible by logged-in members?
- How to remove ?wp-mce-4103-20162941
- Why Won’t My Inputs in a form with a Get method work together?
- parts of url disappear when using # inside href=”” [closed]
- Dot is not added at the end of href
- Add .htm extention to a custom taxonomy
- Show latest posts in a plain HTML website custom widget [closed]
- Hide HTML element (by class or ID) with PHP
- Path for php file for inserting data through html form
- Widget back end radio button issue
- How to remove coupon dropdown feature
- Add shortcode in my div
- Add html link in functions.php files of the theme
- PHP contact form not redirecting [closed]
- How to Schedule Cronjobs for start of every month and year
- Handling PHP/HTML inside the output of a shortcode function
- Menu Custom Data Attributes
- Illegal string offset error in wordpress theme options textarea
- Separate array output into a
- Need help removing […] after excerpt
- Initial offset of number of posts in home page on the posts page
- WordPressUser Submission Form
- Shortcode displaying at the top of the page [duplicate]
- Is it possible to isolate and use WordPress functions outside of wordpress
- Time Delay a URL Redirect for Specific Page
- Cascading dropdown select search based on Parent Page & Child Page
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Background image no longer fits to screen now that project is in php files
- Search bar for wp menu
- Adding HTML Code to Replace Text in PHP
- Executing php on button press
- Shortcode in Shortcode/HTML Graphics and Pictures
- I can’t go to the page archive-{post_type}.php
- Help me I cannot link my font-awesome to my WordPress Theme. I have my font-awesome folder already in my project
- WP Website is shown in HTML
- Use Search Term in html link and redirect
- Mysterious letters appearing at the top of a few pages
- Current WordPress Page Title as Search Parameter into A Tag
- If user has clicked link add class and store using PHP/WordPress
- HTML Formatting “single_term_title()”?
- How to Protect a private folder inside uploads folder, if User is not Logged In?
- How to center all text body in single.php at once?
- sessionStorage saves input value in browser but it is not loaded in the form field
- Collapsible menu on post sidebar only expands and does not collapse
- Changable favicon
- How can I get my pagination loop to display the correct number of total pages?
- AMP version of e-commerce without plugin
- Use PHP to inject HTML into before page renders?
- How to make a parent page for author.php?
- Creating Log-In Page for backend server
- user update profile for custom code
- Vertical Menu for one page only
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Multisite – Display different header content based on which site is accessed
- Show post/page into div using function
- wordpress, Category ID
- html to posts, jpg to featured image, zip file contains jpg and html
- How do you change the tag font size in the repeater-template.php [closed]
- PHP tag in post content makes wordpress go crazy
- How to only fetch certain Tag ID’s
- Where to find the html for WordPress site? [closed]
- RegExp to EXCLUDE strip HTML (FOR SOMME) comments
- Pagination for div’s
- wp nav menu without label
- Pass the updated value of aid from form using ajax
- Show contact 7 form in popup
- How Can I Center the Logo in the Navigation Menu? [closed]
- Arrange Category post manually when displayed
- HTML in PHP problem [closed]
- How to customize posts in WordPress by using HTML and CSS?
- Header location [closed]
- Load wp_editor on button click
- Add topbar to static html page
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- Why do I get a 404 error on my custom post type archive pagination?
- change div text and link for logged in users
- Font Awesome Icons as squares [closed]
- How to modify default tags in wp_head()
- #038 & wordpress Help
- Editing stylehseet url in head section of WordPress
- How can we upload custom page files?