Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Please try this for "Agent slug" (e.g. dave-smith). So replace ‘[wpv-post-author format="url"] with this
- [wpv-post-author format="meta" meta="user_nicename"]
- 2. To set the default value for title try replacing [cred_field field='post_title' class='form-control' output='bootstrap']
- on this
- [cred_generic_field field="post_title" type="textfield" class="" urlparam=""]
- {
- "required":0,
- "validate_format":0,
- persistent:1,
- "default":"your first and last name here [wpv-post-author format="meta" meta="user_nicename"]"
- }
- [/cred_generic_field]
- Change the "default" parameter as you like.
- 3. Relationship select fields. As for the "value" parameter, it expects the numeric (id) of the associated post. For example, if you want to connect to a post with id 3, then the shortcode will look like this
- [cred_field field='@agent-entry.parent' value='3' class='form-control' output='bootstrap' select_text='— not set —' required='false']
- It's hard for me to tell what you're trying to link without seeing the site online, but you can try this
- [cred_field field='@agent-entry.parent' value='[wpv-post-author format="meta" meta="ID"]' class='form-control' output='bootstrap' select_text='— not set -‘required='false']
- where [wpv-post-author format="meta" meta="ID"] is the author ID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement