cpaprotna
Forum Replies Created
-
Forum: Plugins
In reply to: [Sidebar Login] CAPTCHADid you find a solution that will allow a sidebar login with a captcha (or google recaptcha)?
Forum: Developing with WordPress
In reply to: Using WP_Query with sort in AdminIn case anyone is wondering, just use get_posts instead of new WP_query with the same $args
You will still get a Post Object, but you have to use a foreach loop to access each record.
Forum: Developing with WordPress
In reply to: Using WP_Query with sort in AdminWith more testing, I added a filter for posts_orderby and the correct order by is being sent into the query at this time.
I just need to know where it is changed so I can stop that from happening.
Forum: Developing with WordPress
In reply to: Using WP_Query with sort in AdminTo add to my question… I have used var_dump to look at the query for front end and admin in pre_get_posts and they are identical.
I then dumped the request of the result of the call to wp_query.
Here is the group by and order by settings on the front end:
GROUP BY fl_posts.ID ORDER BY fl_posts.menu_order, CAST(mt1.meta_value AS CHAR) ASC, CAST(mt2.meta_value AS CHAR) ASC
Here is the group by and order by settings in admin:
GROUP BY fl_posts.ID ORDER BY fl_posts.menu_order, fl_posts.post_date DESC
So even though the arguments going into WP_Query have a different sort order. Even though I tried to reset the sort order in pre_get_posts for admin, it still is overriding it with menu_order and post_date. The page I am creating is a report for administrators and it needs to be sorted as it is on the front end of the site.
Forum: Plugins
In reply to: [Dynamic "To Top" Plugin] HTTPS mixed content security warningI’m also experiencing the same issues since updating my site to use https://
Forum: Plugins
In reply to: [Ultimate Product Catalog] PHP Warnings with this pluginI’ve also noticed that I am getting a 404 error on the styling .js and .css file because a variable isn’t set properly
ultimate-product-catalogue/css/catalogue-style-.css?ver=1498706425
In UPCP_Main.php, the variable $Catalogue_Style is not set, so the name of the file to include is not set properly and therefore I get an error.
Forum: Plugins
In reply to: [Private groups] 500 error when posting new topicI am having this same issue. I upgraded to WP 4.8 and made sure I was on php5.6 and it did not resolve the issue. Going back to version 3.4.4 of bb_private_groups did resolve the issue for me.
Forum: Plugins
In reply to: [Theme My Login] Recaptcha on Login PageChris – one way to avoid this is to change the default username from admin to something else. I always try to use 3 or 4 character abbreviation for the site+admin.
I also use this plugin in conjunction with limit login attempts which blocks login by IP address after too many failed attempts.
I’m getting the same error. I hope that the author is still planning on maintaining this plugin.
Forum: Plugins
In reply to: [Custom Post Type UI] Changing Posts per Page for each CPTBut your tutorial is missing a closing parenthesis here:
if ( is_post_type_archive( 'movie' ) { $query->set( 'posts_per_page', 30 ); }
Forum: Plugins
In reply to: [Custom Post Type UI] Changing Posts per Page for each CPTThank you!! This is exactly what I needed.
Forum: Plugins
In reply to: [Contact Form 7] Select drop down based on query stringThank you, this worked like a charm! Please update your documentation to include this functionality.
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] No more than 3 conditional statementsMy error log has the following in it after doing these tests:
`[04-Jan-2017 18:33:28 UTC] PHP Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method ContactForm7ConditionalFields::shortcode_handler() should not be called statically in …/wp-content/plugins/contact-form-7/includes/form-tags-manager.php on line 231
[04-Jan-2017 18:33:28 UTC] PHP Notice: WPCF7_Shortcode is deprecated since Contact Form 7 version 4.6! Use WPCF7_FormTag instead. in …/wp-content/plugins/contact-form-7/includes/functions.php on line 351Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Only one conditional rule worksI modified lines 47 & 73 of admin.php and just changed form_scan_shortcode to scan_form_tags and it fixed the problem.
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Only one conditional rule worksAnother note… My debug log has the following:
WPCF7_ContactForm::form_scan_shortcode is deprecated since Contact Form 7 version 4.6! Use WPCF7_ContactForm::scan_form_tags instead.