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

Reply To: CRED Create and insert parent member id shortcode

$
0
0
Hi Nikos

I think this is what I have done.

I have displayed the view shortcode immediately behind the input field.

If you log in with subscriber subscriber and go to http://www.teesdalelocal.co.uk/group-club-society/barnard-castle-bowls-club it displays the value "838" immediately behind the input field.

838 is the code for subscriber.

The code generated by the GUI is

[cred_generic_field field="_wpcf_belongs_member_id" type="textfield" class=""]
{
"required":0,
"validate_format":0,
"persist":0,
"default":"[wpv-view name="Get Member ID"]"
}
[/cred_generic_field]

and I adjust it to

[cred_generic_field field="_wpcf_belongs_member_id" type="textfield" class=""]
{
"required":0,
"validate_format":0,
"persist":0,
"value":"[wpv-view name="Get Member ID"]"
}
[/cred_generic_field]

Note that this does not display the input field so I remove the "" to get it to show.

[cred_generic_field field="_wpcf_belongs_member_id" type="textfield" class=""]
{
"required":0,
"validate_format":0,
"persist":0,
"value":[wpv-view name="Get Member ID"]
}
[/cred_generic_field]

Re your second message, you will see "no posts found" because you are not logged in. If you log in with subscriber you will see the code.

Regards
Tony


Viewing all articles
Browse latest Browse all 20145

Trending Articles