dynaguy
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [WP-Print] Work with TravelifyI got it!
So I should put this line in near line 250, inside the
funtion travelify_theloop_for_single()So it looks like this:
/****************************************************************************************/ if ( ! function_exists( 'travelify_theloop_for_single' ) ) : /** * Function to show the single post content. */ function travelify_theloop_for_single() { global $post; if( have_posts() ) { while( have_posts() ) { the_post(); // For WP-Print plugin to print out the post: if(function_exists('wp_print')) { print_link(); } do_action( 'travelify_before_post' ); ?> ... more code...Forum: Plugins
In reply to: [WP-Print] Work with Travelifyok, I am getting a little bit close….
I now add the line without the php tag and it kind of works.
function travelify_theloop_for_archive() { global $post; if( have_posts() ) { while( have_posts() ) { the_post(); if(function_exists('wp_print')) { print_link(); } do_action( 'travelify_before_post' ); ?> ...Now on the wordpress front page, each post have a “Print this post” link and I can click it to print. But if I open a post in full then there is no such print link.
I guess I put the line in the wrong position. Help please.
Viewing 2 replies - 1 through 2 (of 2 total)