Forum Moderators: open

Message Too Old, No Replies

Anyway to link to WordPress entry without comments?

Want to link to external WordPress page but have the comments hidden

         

badbadmonkey

10:33 am on May 23, 2009 (gmt 0)

10+ Year Member



As it says on the tin. Want to link to a WordPress blog entry on another site (not mine), but want folk to land on the page minus the web-rubbish in the comments below the entry...

Is there a WordPress URL parameter that provides for this?

I have searched and come up empty-handed. Lots of results for WordPress mods & hacks but nothing for URLs. Hoping somebody will know.

londrum

11:35 am on May 23, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



it would be easy enough to make one.
just add a query string of your own choosing onto the end of the URL, and then test for that query string in the single.php page

there is a line in that template page which says

comments_template();

so you'd just need to change that to

if(!isset($_GET['blah'])) {

comments_template();

}

badbadmonkey

12:05 pm on May 23, 2009 (gmt 0)

10+ Year Member



You misunderstand, it's not my site. I wanted to know if there was a built-in parameter that external linkers can use.

ergophobe

4:51 pm on May 23, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It's up to the theme designer and admin to decide what shows on the page.

It's likely that the RSS version will not have comments, but otherwise, you get what you get. Anyway, trying to work around that would be like putting their content in a frame on your site. Agree or disagree with the presentation, it's his/her site.