Maintaining plugin addons while upgrading
I’d suggest either using the database if possible or using a folder outside your plugin folder. A sub-folder of the wp-content/uploads appears to be a popular choice, as it survives updates/upgrades.
I’d suggest either using the database if possible or using a folder outside your plugin folder. A sub-folder of the wp-content/uploads appears to be a popular choice, as it survives updates/upgrades.
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
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
You can run scheduled events using wp_cron. To trigger it manually you’ll need to create an admin screen and create a button that triggers the function. To do that read up on Creating a Plugin and Adding Admin Menus.
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
I think you mean you want to make your own short codes work on the mobile theme? This is possible, try the wptouch admin panel options to enable your plugins. You can also copy your short code to the functions.php file in the wp touch theme folder. Finally … You may have to get the … Read more
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
These four requirments comes right of the box with wordpress. You don’t need any extra plugin for that. Any user can register – Go to General settings page and enable Anyone can register option by checking checkbox available next to it. They can post product – Assign them a role of author so that they … Read more
There are a number of ways of achieving this but the two ways I would concider would be Google analytics – http://wordpress.org/extend/plugins/google-analytics-for-wordpress/ WordPress Sitestats – http://wordpress.org/extend/plugins/stats/ or install http://wordpress.org/extend/plugins/jetpack/ as it comes with that.
Remember that GA runs client side in the browser and if your intranet visitors do not have access to GA servers via the internet then GA is not going to work for you. With that said, Joost De Valk’s GA plugin has a way to manually enter the UA code rather than using a connection … Read more