I tried to apply the advice to the code in the current class-hashtagger.php in line 134 (because the new hashtagger.php only have 28 lines):
wp_set_post_tags( $postid, $this->get_hashtags_from_content( strip_tags( $content ) ), $this->settings['advanced_nodelete'] );
Changed to:
wp_set_post_tags( $postid, $this->get_hashtags_from_content( strip_tags( $content ) ), 'comic_tags' $this->settings['advanced_nodelete'] );
But it didn’t work. WP Error:
Parse error: syntax error, unexpected ‘$this’ (T_VARIABLE), expecting ‘,’ or ‘)’ in E:\Bitnami\wordpress-4.6.1-0\apps\wordpress\htdocs\wp-content\plugins\hashtagger_for_cpts\inc\class-hashtagger.php on line 134
Please help.
EDIT: Oh, I forgot the comma after 'comic_tags'
. But it does not work anyway…
-
This reply was modified 8 years, 5 months ago by Artiom.
-
This reply was modified 8 years, 5 months ago by Artiom.
-
This reply was modified 8 years, 5 months ago by Artiom.
-
This reply was modified 8 years, 5 months ago by Artiom.