Reply To: puresimple_*() functions not working

Home Forums WordPress Themes – Premium Pure & Simple puresimple_*() functions not working Reply To: puresimple_*() functions not working

#21238
Tom Fikes
Member

the site is hosted locally for development, and is not live yet. here is a screenshot of the single post page for one of my posts, echoing ‘content single n’ (n=1 to 8 ) so that I could track down the point at which the php code stopped working. that is in my chile theme. also attached is a screenshot of the page after I switch to the parent theme. the code for content-single.php is pasted below in its entirety. It is identical to the content-single.php code in the parent theme, other than my echo statements.

As you can see, php puresimple_posted_on() does not execute in the child theme (and if that line is removed, the code fails on the next puresimple_ function call).

I’m not sure what screenshots would be useful to you… the directory structure of the parent and child themes? Please let me know and I will pos those.

Thanks,
-tom


echo 'content single 1';
<article id="post-" >
	
<?php the_title( '

', '

' ); ?> echo 'content single 2';
echo 'content single 5'; <?php // do not show featured image if post is paged $paged = get_query_var( 'page' ) ? get_query_var( 'page' ) : false; if ( $paged === false ): if ( has_post_thumbnail() ) { echo ''; } endif; ?> echo 'content single 6'; echo 'content single 7'; echo 'content single 8';
<?php if (get_the_modified_time() != get_the_time()) : _e( 'Last Modified on ', 'pure-and-simple' ); the_modified_date() ; echo '
'; endif; /* translators: used between list items, there is a space after the comma */ $category_list = get_the_category_list( __( ', ', 'pure-and-simple' ) ); /* translators: used between list items, there is a space after the comma */ $tag_list = get_the_tag_list( '', __( ', ', 'pure-and-simple' ) ); $parent_title = get_the_title( $post->post_parent ); if ( ! puresimple_categorized_blog() ) { // This blog only has 1 category so we just need to worry about tags in the meta text if ( '' != $tag_list ) { $meta_text = __( 'This entry was tagged with %2$s
this article ', 'pure-and-simple') . $parent_title . '
'; } else { $meta_text = __( 'this article ', 'pure-and-simple' ) . $parent_title . '
'; } } else { // But this blog has loads of categories so we should probably display them here if ( '' != $tag_list ) { $meta_text = __( 'This entry was posted in %1$s
Tagged with %2$s
Bookmark this article ', 'pure-and-simple' ) . $parent_title . '
'; } else { $meta_text = __( 'This entry was posted in %1$s
Bookmark this article ', 'pure-and-simple' ) . $parent_title . '
'; } } // end check for categories on this blog printf( $meta_text, $category_list, $tag_list, get_permalink() ); ?> <?php edit_post_link( __( 'Edit This Post', 'pure-and-simple' ), '', '' ); ?>

singlepost1.jpg
singlepost2.jpg

Attachments:
You must be logged in to view attached files.