- This topic is empty.
-
AuthorPosts
-
December 11, 2011 at 12:29 am #35581nathan05Member
The following is the comments code for my theme … went ahead and just deleted the code for commenting … I went to wordpress.org and found this article http://codex.wordpress.org/Commenting_Code … and instead of just getting ride of/or (commenting out the ) comments all together … I would rather leave them for the design page … anywho … for some reason there is not a whole lot on this subject … or atleast I have not been able to find it …
/**
* The comments template
*
* @package WordPress
* @subpackage Minimatica
* @since Minimatica 1.0
*/
?>
1 && get_option( 'page_comments' ) ) : ?>
← ' . __( 'Older Comments' ) ); ?>
→' ); ?>
1 && get_option( 'page_comments' ) ) : ?>
← ' . __( 'Older Comments' ) ); ?>
→' ); ?>
$post_id = get_the_ID();
$commenter = wp_get_current_commenter();
$req = get_option( 'require_name_email' );
$aria_req = ( $req ? " aria-required='true'" : '' );
$required_text = '';
$fields = array(
'author' => '' . ' ' . ( $req ? '*' : '' ) .
',
'
'email' => '' . ' ' . ( $req ? '*' : '' ) .
',
'
'url' => '' . '' .
'
'
);
$defaults = array(
'fields' => apply_filters( 'comment_form_default_fields', $fields ),
'comment_field' => '
',
'comment_notes_before' => '',
'comment_notes_after' => '',
);
?>
December 11, 2011 at 5:34 am #92442TheDocMemberYou could do something like:
// insert comments code
} ?>December 11, 2011 at 7:37 am #92444davidlab.beParticipantIn my last project I did what TheDoc suggested and it works just fine.
December 11, 2011 at 3:51 pm #92465nathan05MemberSweet … so to be sure doc … I put the code at the top of the comments.php and comment out the rest of it … or leave it as is ?
December 11, 2011 at 3:59 pm #92466TheDocMemberIn your page.php you could add:
comments_template();
} ?>I think that should work if you’re using comments.php.
December 11, 2011 at 4:22 pm #92467nathan05Memberthe first bit of code you recommended … do i add that to the top of the comments.php template … or do I replace a bit of code with what you shared?
and the second bit of code … do I add this in addition to the comments bit of code I add? …
thanks for your help …
December 11, 2011 at 6:00 pm #92474nathan05MemberThanks doc … I made a back up copy of the template page and comments.php files … then I added the first bit of code to the comments.php file … then I deleted everything in the pages.php file between the
get_header();?> and and replaced it with the second bit of code you gave … and it is working … thanks for your help …
December 11, 2011 at 6:02 pm #92475nathan05Membernow its not showing the post for the about pages … LOL …
December 11, 2011 at 6:20 pm #92476nathan05MemberHere is exactly what I have in my “PAGE TEMPLATE”
get_header(); ?>
comments_template();
} ?>
All I did was add
comments_template();
} ?>and I took out
So now the about page gets its posts …
Now I am working on the Design page … the comments work … but the page title is below …
December 11, 2011 at 6:33 pm #92477nathan05MemberOk … so what I figured out is this … the following bit of code
comments_template();
} ?>has to go after this bit …
so now the title shows up above the comments box …
December 11, 2011 at 6:47 pm #92478TheDocMemberI’m not sure if you’ve got it sorted – have you figured it out? Do you need anything else?
December 11, 2011 at 11:55 pm #92492nathan05MemberLOL … yea … I was just posting everything I did … so if someone else runs into the same issue …
I just made back up copies of the page and comments .php files … so I could read through the code and see where it might logically go …
Thanks for your help doc …
-
AuthorPosts
- The forum ‘Other’ is closed to new topics and replies.
'minimatica_comment' ) ); ?>