Social Response
Forum Replies Created
-
Forum: Plugins
In reply to: [Word Stats] Version 4.4.2 not compatible with WP > 3.8In the plugin folder go to word-stats.php and comment our or delete line 779 and 782.
function word_stats_create_menu() { global $word_stats_options; add_action( 'admin_init', array( 'Word_Stats_Admin', 'init_settings' ) ); add_options_page( 'Word Stats Plugin Settings', 'Word Stats', 'manage_options', 'word-stats-options', array( 'Word_Stats_Admin', 'settings_page' ) ); /* if ( !Word_Stats_State::is_worker_needed() ) { */ $page = add_submenu_page( 'index.php', 'Word Stats Plugin Stats', 'Word Stats', 'edit_posts', 'word-stats-graphs', array( 'Word_Stats_Admin', 'reports_page' ) ); add_action( 'admin_print_styles-' . $page, 'word_stats_report_styles' ); # Load styles for the reports page /* } */ }
It’s meant to turn off the menu when the word stat plugin is doing its thing but it doesnt quite work i don’t think.
You might like to check out this as well
https://www.ads-software.com/support/topic/excluding-shortcodes-keywords-fix
Forum: Plugins
In reply to: [Word Stats] Style Elements in KeywordsForum: Plugins
In reply to: [WP Customer Reviews] Changing "Submit your review" on formThere appears to be an error on line 662 or wp-customer-admin-reviews.php
<label for="leave_text">Text to be displayed above review form: </label><input style="width:250px;" type="text" id="goto_leave_text" name="goto_leave_text" value="'.$this->options['goto_leave_text'].'" />
It is repeating the goto text which is that of the button above the form. Change this line to
<label for="leave_text">Text to be displayed above review form: </label><input style="width:250px;" type="text" id="leave_text" name="leave_text" value="'.$this->options['leave_text'].'" />
Hopefully the developer will get this into the next update.
Forum: Plugins
In reply to: [Custom Post Template] Not available to Custom Post Types ?You would add that to your functions.php. It entirely depends on what your trying to achieve. If you have started with this plugin see if you can get it too work. The plugin has taken care of registering the posts for you.
I dont know the plugin but the first thing i would do to start, is hover your mouse over the articles menu item in the admin right click, copy link and paste it somewhere to see what the link is. It will look something like this
https://www.YOUR_DOMAIN_NAME.co.uk/wp-admin/edit.php?post_type=articles
where “articles” may be something like “types_articles” or have some other prefix.
Whatever that says after the = is what you need to have in this code as your post types. My guess is your plugin probably gives them some fancy name for identifying them.
* * @param array $post_types An array of post type names that the templates be used by * @return array The array of post type names that the templates be used by **/ function my_cpt_post_types( $post_types ) { $post_types[] = 'WHATEVER_AFTER_EQUALS_SIGN'; return $post_types; } add_filter( 'cpt_post_types', 'my_cpt_post_types' );
If that doesn’t work then you may want to consider creating your articles custom post type without the plugin by registering a custom post in the functions.php of your child theme.
Forum: Plugins
In reply to: [Custom Post Template] Doesn't work with a Child ThemeFYI Mine works fine in a child theme, I think it must depend on the Theme
Forum: Plugins
In reply to: [Custom Post Template] Not available to Custom Post Types ?John
Post up the code that you have used to register the post type ‘articles’ as well.
Check that its inside the php tags, also that you have
register_post_type( 'articles', $args );
Where you are registering the custom post type and not ‘article’ or ‘book’ if you have used sample code from WP