Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] single cred form to update fields

$
0
0

Dear Mark,

You might be able to do this using a custom shortcode, add these lines to functions.php in your theme:

add_shortcode('cred_order_field', 'cred_order_field_func');
function cred_order_field_func($atts) {
  $title = do_shortcode("[wpv-post-title]");
  $slug = do_shortcode("[wpv-taxonomy-slug]");
  $out = '[cred_field field="order-' . $slug . '" post="orders" value="' . $title . '"]';
  return do_shortcode($out);
}

Then you can use [cred_order_field] in your template.

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.

Regards,
Caridad


Viewing all articles
Browse latest Browse all 20145

Trending Articles