keyoung 0 Report post Posted March 7, 2011 How can I edit "single.php"? Platform pro child is active. I also want to add another template "single2.php"? I am only used to traditional wordpress themes, so if you are kind enough to answer, please go step by step Thanks! Share this post Link to post Share on other sites
bryan-hadaway 3 Report post Posted March 8, 2011 Copy single.php over to the child theme (Base) and then you can edit it directly from Appearance > Editor. Thanks, Bryan Share this post Link to post Share on other sites
keyoung 0 Report post Posted March 8, 2011 Thanks... I want the post to show a custom field. It does. But now it doesnt show what I put in the main article text field. What am I doing wrong?? Thanks ` <?php /** * The Template for displaying all single posts. * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ get_header(); ?> <?php $custom_field_1 = get_post_meta($post->ID, "custom_field_1", true); echo $custom_field_1;?> <?php /* Run the loop to output the post. * If you want to overload this in a child theme then include a file * called loop-single.php and that will be used instead. */ get_template_part( 'loop', 'single' ); ?> <?php get_sidebar(); ?> <?php get_footer(); ?> ` Share this post Link to post Share on other sites
bryan-hadaway 3 Report post Posted March 8, 2011 Let's get a developers eyes on this... Thanks, Bryan Share this post Link to post Share on other sites
keyoung 0 Report post Posted March 8, 2011 thanks for your help... Share this post Link to post Share on other sites
cmunns 16 Report post Posted March 8, 2011 You need to add your single specific code to the main template.postloop.php file using conditional statements. Take a look at that file and you'll see what's going on. Share this post Link to post Share on other sites