Hi Brian,
Would you mind posting the entire code that you are trying to publish? That way I can take a look and see if you are missing anything. I know that WordPress will strip tags that are not closed or if there is no content between the tags.
Richard,
The code is posted below. Nothing complicated, just a test.
To be clear, the single line of text enclosed by <p> is in the list of posts. When I click on the post heading to select the post from the list, it IS formatted properly. So the problem is in the list of all posts rather than an individual post.
Brian
This is the code as entered into the WordPress editor:
<h3>Movies</h3>
<ul>
<li>Wages of Fear</li>
<li>Black Orpheus</li>
</ul>
<h3>Music</h3>
<ul>
<li>Bob Dylan Mono Recordings (first eight albums)</li>
<li>The Pentangle (first album)</li>
</ul>
<h3>TV Shows</h3>
<ul>
<li>Jamie's 15 minute meals</li>
<li>Roosevelts biography</li>
</ul>
And this is what the code looks like when viewing site with view page source:
<div id="post-173" class="post-173 post type-post status-publish format-standard hentry category-uncategorized" >
<h2 class="entry-title"><a href="http://www.brandaware.ca/new-on-ringo-september-2014/" title="Permalink to New on Ringo – September 2014" rel="bookmark">New on Ringo – September 2014</a></h2>
<div class="entry-meta">
<p>
<span class="meta-prep meta-prep-author">By </span><span class="author vcard"><a class="url fn n" href="http://www.brandaware.ca/author/mwlpedfkumfalq32tfia/" title="View all posts by mWLpEdfkUMfALQ32tfiA">mWLpEdfkUMfALQ32tfiA</a></span>
<span class="meta-sep meta-sep-edit"> </span>
<a href="http://www.brandaware.ca/global/ps/wordpress/wp-admin/post.php?post=173&action=edit" title="Edit post">Edit</a>
</p>
</div><!-- .entry-meta -->
<div class="row">
<div class="entry-content large-12 columns">
<div class="large-12 columns">
<p>Movies Wages of Fear Black Orpheus Music Bob Dylan Mono Recordings (first eight albums) The Pentangle (first album) TV Shows Jamie’s 15 minute meals Roosevelts biography </p>
</div>
</div><!-- .entry-content -->
I can’t seem to replicate the issue. Are you using any plugins?
Richard,
I deactivated all plugins including the Members plugin, so now the site is visible without logging in at http://www.brandaware.ca. Please take a look. You can clearly see the list of posts with content shown as a single line, with content properly formatted when a particular post is selected.
Brian
Nevermind, WordPress automatically strips tags when showing excerpts for posts. The reason for this is because if you only want to show the first let’s say 50 characters and you include html tags, there’s a possibility that a closing tag will get cut off. Make sense? Another option is just to show the entire content from the post. You might be able to search for a work around, but there’s not much I can do about it.
My suggestion would be to have a descriptive paragraph above the list items. The text in that paragraph will show in the excerpt, so that way a reader can get a good idea of what the post is about and then click to read more.
Here’s a function that you can put in your childtheme functions.php file. This will show the full content on the blog index page as opposed to the excerpt. I haven’t tested it out, so let me know if it works properly
function childtheme_override_content_init() {
global $cleanyetibasic_content_length;
$content = '';
$cleanyetibasic_content_length = '';
if ( is_singular() || is_home() ) {
$content = 'full';
} else {
$content = 'excerpt';
}
$cleanyetibasic_content_length = apply_filters('cleanyetibasic_content', $content);
}
Richard,
Thank you! Works perfectly.
You might want to add this as an option in Clean Yeti Basic.
Brian