Not One ‘Contact Form Plugin’ will send email // Work

Disable all other plugins. Use the default theme. Try again. If it doesn’t send, try sending to a different (eg gmail) address. If that still doesn’t work, verify that sendmail is installed. If it is, check and see if a basic sendmail php script will work. If that still doesn’t work or sendmail isn’t installed, … Read more

Making my plugin create a page?

You can use wp_insert_post to insert a physical page, though I would suggest creating one page for the plugin and then using a rewrite rule to give all of your items a URL with that single page as the base. EDIT quick rewrite example with added query var: function wpa55546_rewrites(){ $page_slug = ‘your-page’; // urls … Read more

Replacing global wp_query

Firstly, I’d seriously consider opting for another plugin (it hasn’t been maintained in over 2 years), or making use of WP’s built-in paginate_links. But, in the quest to provide a solution, give this a go: function wp_page_numbers_custom( $wp_query, $start=””, $end = ” ) { $_backup = array( ‘wp_query’ => @ $GLOBALS[‘wp_query’], ‘max_page’ => @ $GLOBALS[‘max_page’], … Read more

Adding class to last list item? Not WP generated

I can only see achieving this by first building an array, then looping over it – I can’t find anything in APC’s docs about checking if it’s the last iteration of the_repeater_field: $images = array(); while ( the_repeater_field( ‘homepage_service’ ) ) $images[] = get_sub_field( ‘service_image’ ); if ( $images ) { $image_last = array_pop( $images … Read more

Is there any pre-existing plugin to track and block IPs with suspicious activity on my site?

I use http://wordpress.org/extend/plugins/limit-login-attempts/ which blocks IPs when login attempts exceed set limit you set. Limit Login Attempts blocks an Internet address from making further attempts after a specified limit on retries is reached, making a brute-force attack difficult or impossible. If you’re on a host where you can install and run root code, look at … Read more