Inserting into WP DB

Use wp_cron to run a job every hour. http://codex.wordpress.org/Function_Reference/wp_cron Use $wpdb->get_results to fetch data from your external table. Example: $q = “SELECT * FROM my_table”; $results = $wpdb->get_results($q, OBJECT); foreach ( $results as $result) { } Insert new CPT-posts using wp_insert_post() http://codex.wordpress.org/Function_Reference/wp_insert_post

deeplink juggernaut – remove settings

Andrea, I came across your post because I am experiencing the same problem. Honestly, when I was deciding between ultimate and yoast, the juggernaut was a pro for me. Not anymore, links are linking to themselves, and links in the h1 h2 h3 so forth, even when I set it not to. I’ll be switching … Read more

Moving from one WP site to a new WP site incrementally

Have you thought about doing this with per-url redirects? I found something promising here: http://www.phpin24.co.za/apache/apache-change-documentroot-for-a-specific-url/ It seems to boil down to this (copied from the linked page): <VirtualHost *:80> ServerName www.phpin24.co.za DocumentRoot /var/www/html/phpin24 AliasMatch ^/enquire-now/thankyou/(.*) /var/www/html/other-code/app/webroot/$1 AliasMatch ^/enquire-now/(.*) /var/www/html/other-code/app/webroot/$1 ErrorLog /var/log/httpd/phpin24/phpin24_error_log CustomLog /var/log/httpd/phpin24/phpin24_access_log combined <Directory /var/www/html/phpin24/> Options FollowSymlinks AllowOverride All FileETag none </Directory> </VirtualHost>

check if .min.css stylesheet exists

Directly answering your question, you should be able use the function admin_url() to get the base URL for the admin folder, and ABSPATH . ‘wp-admin’ to get the local file path to that folder. Certainly, the WordPress code itself doesn’t expect the admin folder to be named anything different. However, you should be able to … Read more

Can i show items based on the day with php?

Most probably off-topic question… You can use: $var = date(“D”); to get the current day of the week. Then make a switch or a series of if-else to choose which posts you’ll want to display for that day.

My first plugin doesn’t save the data in options

The problem is your validate function RSP_options_validate(). This function always a empty string. Check your conditional statement with preg_match. If you test your source without this functions, it works. register_setting( ‘RSP_options_group’, ‘RSP_options’, ‘RSP_options_validate’ ); to register_setting( ‘RSP_options_group’, ‘RSP_options’ );

Can’t Access Constant from within Included File

The Problem here is that the Template Files get processed before the wp_footer action, so your constant is not defined at that stage. Just to be sure, try hooking your constructor of the class to an action that is called earlier, I don’t really know how early you need it, but try init. You could … Read more