nick.mcelligott
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How can I programmatically insert a custom post with custom fields?You must insert the post and then update the ACFs.
global $user_ID; $new_post = array( 'post_title' => 'My New Post', 'post_content' => 'Lorem ipsum dolor sit amet...', 'post_status' => 'publish', 'post_date' => date('Y-m-d H:i:s'), 'post_author' => $user_ID, 'post_type' => 'post', 'post_category' => array(0) ); $post_id = wp_insert_post($new_post); update_field('FIELD_KEY_NOT_NAME', $'snbp_event_venue_value, $post_id);
Ron,
Thanks again for the quick response. Yep, I’ve looked at that link already and it will probably be my next port of call.
I’m a bit confused though. If I go to the URL somedomain.vic.gov.au/somepath, this is routed to my MU server.
Couldn’t I just check to see if $_SERVER[ ‘HTTP_HOST’ ] is somedomain, and if so route that to myblog.myMU.com ?
Really appreciate you time,
Cheers.
Hi Ron,
Thanks for your quick response.
I think I will look into setting up Varnish, or nginx, as I’m using Bitnami and it looks relatively easy to setup.
Do you have much experience with these tools? It seems for nginx I can use the map module.
Thanks again Ron.
Cheers,
@hccdev, which plugin are you referring to?
And just seconding what @ultranorman is saying here. I would gladly pay for this support.
Cheers.
Forum: Reviews
In reply to: [Import Users from CSV] Once setup, it works well.I gave the plugin a 3 star rating because;
– it is not compatible with one of the most widely used csv editing applications.
– this shortcoming is not documented (at least not anywhere I was able to find while troubleshooting)
– the error log did not display anything when nothing was imported. Granted I realise that there were no “errors” as the script found nothing to import, but really, that should raise a flag if nothing is imported, and should probably log something to the effect of ‘data in acceptable format not found’.
– no time stamps on the error log.Perhaps I could help and contribute by trying to get the script to accept excel formatted csvs?
Cheers.