New answers tagged

0

Complete code (thanks to @birgire) in case anyone else finds useful in the future: // Append Tags as Hashtags to Jetpack publicise posts if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'publicize' ) ) { function tsj_publicize_hashtags() { $post = get_post(); if ( ! empty( $post ) ) { /* Grab the tags and ...


2

Just some general remarks: Why isn't the following change working? $custom_message = get_the_title( $post->ID ) .''. $hash_tags; to: $custom_message = get_the_content( $post->ID ) .' '. $hash_tags; Note that get_the_content() doesn't take a post ID as an input parameter and it depends on global variables, like $pages that's ...



Top 50 recent answers are included