Subtract Using GravityWP Count Plugin

Use $add_number if $sub_number is 0, else use $sub_number: $sorting = null; $paging = array( ‘offset’ => 0, ‘page_size’ => $page_size ); $entries = GFAPI::get_entries($formid, $search_criteria, $sorting, $paging); $countentries = GFAPI::count_entries( $formid, $search_criteria ); if(!$sub_number) { $countentries_add = $add_number + $countentries; if ( !empty( $number_field ) ) { $gwp_count = $add_number; for ($row = 0; … Read more

filter just a portion of plugin function

Looks like that isn’t the filter the want. It runs right at the end of the BBPress bbp_get_breadcrumb function which is after the stuff you want to change. You can change just the separator with bbp_breadcrumb_separator and it looks like before and after can be set with bbp_get_breadcrumb_pre. In fact, it looks like you should … Read more

Ajax Called in Plugin php file

You should not use your own AJAX handler PHP file. Your problem is that your file calls add_action() function and that function is part of WordPress, your file is not loaded in the WordPress context, so that function is not loaded. You need to load WP in your file first. But, that is not a … Read more

A splash page on landing page

I would propose first to make this at the front end. The reason is Google and other crawlers can read your content and don’t penalize you for sneaky (the user didn’t expect a redirect) redirects or slow loading times. What I would do: On the main page : function load_splash() { setTimeout(function () { $(‘#hiddendiv’).hide(); … Read more

Fatal error in wordpress

Access your server via FTP/ SFTP , or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/plugins/ and delete wordpress-seo plugins.