PatJ
Forum Replies Created
-
Forum: Hacks
In reply to: Custom Post Types adding info to TaxonomyThis is exactly what I’m trying to do and save_post is working fine when editing but isn’t called on adding a new one of post-type. I’ve posted a cry for help on this forum. I’m usung version 3.1.3
This is my code in save_post which works beautifully when editing a custom post (check at start of save_post function if this is right post-type and not a revision or autosave)
$tslug = $post->post_name; $tname = $post->post_title; $tax = 'mytaxonomy'; // in your case village $termno = term_exists( $tslug, $tax ); // array is returned if taxonomy is already in // if term doesn't exist, add term as subsidiary of parent. Use 0 for parent if no parent. if (!isset($termno)) { wp_insert_term( $tname, // the term $tax, // the taxonomy // description = text bit about term array( 'description'=> $tname, 'slug' => $tslug, 'parent'=> 0 ) ); }I’m using standard IE8 and I tried the support site several times last night but it constantly came up with the text as black on black. Headers were OK but text sections were not.
I’m having similar trouble and trying to read the help on the plugin’s own website is just impossible as the theme there has black text on a black background. Looks horrid and is totally unreadable.
That worked. Thank goodness I didn’t lose my settings or widget settings when I de-activated.
well I fixed it but I had to use code to add capabilities to the admin role. Why doesn’t it do this by default?
Considering this is supposedly “the best documentation” it should tell you that. And what happens if you simply are not a coder?Forum: Plugins
In reply to: [CSV User Import] [Plugin: CSV User Import] CSV user import brokenThanks, I’ll download and try it again later this week.
Thanks. I shall try to use the hook. This will follow on from the form with the querystring parameters – by sending the email, the logged-in user confirms their commitment to a task on a date and this action will pick out date, task and user id which were all passed to the extra fields of the contact form. The action then inserts/updates that information in my plugin’s tables within the WordPress database. The task list with “volunteer” links to the contact form is created by querying those tables and shown on a page with a shortcode.
It works brilliantly. Thank you.
Wow – thank you. Looks great – I’ll test it shortly.
My two WordPress sites are for clubs, so also a spare time hobby (day job is asp.net and sql server) but I shall talk nicely to the Treasurer about a donation as your Fast Secure Contact Form is proving a great benefit to both.
Thanks so much.