Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Mahesh Sangam
Mahesh Sangam
71 Points

how can i show wordpress function "Print | PDF | Share" buttons in one particular page only not all other pages.

I think i have to use if condition but i really no idea how to do thsi for sidebar i used this condition on one category to display in one page for sidebar...

<?php if( in_category('ft-almonds')){ echo get_sidebar( 'fruittreesgallery' ); } else{ echo " "; } ?> Right now im facing problem with (Print | PDF | Share) button to display in only one page...

Hi Mahesh,

two quick questions really:

Are you creating the theme or have you downloaded one?

Which .php file are you editing ?

Thanks Craig

5 Answers

Hi,

https://wordpress.org/plugins/printfriendly/

This plugin is great lots of features and control and allowed me to only put it on the pages I needed should do the trick !

Thanks Craig

Mahesh Sangam
Mahesh Sangam
71 Points

I created a theme in that i have download page, once user click to download they can see reqults page that results page with tables and get data from mysql as they field form previously to get the information and grades..

For this information we make them to login or register, once they register and login they can see this result page with all there fields input and grades and more on results...

I want them to take a final print of this page or share with friends or convert to pdf, so they can save in there pc....

My page is results-download.php where im paching all data from mysql and displaying..... even i want to make one graph with all there input results but i will ask this question lateron...

Please kindly help me how can i write a wordpress function to that particular page get a PRINT | PDF | SHARE buttons..... Thanks a lot for your response..

Mahesh Sangam
Mahesh Sangam
71 Points

Thank you very much Craig Watson.. its working perfectly.... THnaks a lot

Mahesh Sangam
Mahesh Sangam
71 Points

Please Craig Watson Sir do you know about Property Search PLugin like http://propertyfirst.com please im looking from many days about this search plugin or tutorial to develop one property site and using this search on front page of site... please if you have made or if you have any tutorial on this please kindly send me url im very much interested to learn this ASAP to finish my project...

Thanks a lot and lot for your kind help on Print | PDF option

Glad i could help Mahesh,

I have not had to create a site for an estate agent as yet but this link has some good looking plugins with short code references for search terms within the widget areas...

https://wordpress.org/plugins/wp-property/

Hope this helps !!

Craig