How can I hard coded comments area to be shown in particular pages in wordpress? -
in sites use static page front page, , did other static pages show special static content (and embedded object) page sin particular want have comment area shows.
my question is: how enable comments -preferred hard code- in particular pages? @ least having same category?
i using wordpress 4.1 , avada theme.
well can disable comments on over website going settings discussion , uncheck box says, allow people comment on new articles. remove comments on new pages , posts (starting now). when create new page/post click on button on top says "screen options". check box says "discussion". have new field in post can enable/disable posts individually.
if want through code, 1 way create separate files each page e.g page-contact.php, when goes contact page, file served, can clone of page.php , needs comment part removed. way goto page.php , wrap comments code condition
if(is_page('contact') || is_page('about')){ // code show comments. comments shown on contact , page }
Comments
Post a Comment