Home Forums Plugin Support WP User Frontend Pro Adding a custom field?

This topic is: resolved

Tagged: 

This topic contains 15 replies, has 3 voices, and was last updated by  Michael 5 years, 11 months ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #6903

    Michael
    Participant
    Post count: 27

    Hi,

    I have a theme that includes a custom field in the normal post creation admin section of my site. It's called video embed. How would I go about including this into the custom field list in WP User Frontend Pro? I would like to have this as an option for my users when they create a post.

    Thanks

    Mike

    #6906

    Michael
    Participant
    Post count: 27

    I sent a request for more information from my theme developer and this was his reply.

    I see. The video embed is a simple meta-data field. To output it, you would use:
    < ?php if(get_post_meta($post->ID, ‘videoembed_videoembed', true)): ?>
    < ?php echo get_post_meta($post->ID, ‘videoembed_videoembed', true) ?>
    < ?php endif; ?>

    The shortened version with no check is just:
    < ?php echo get_post_meta($post->ID, ‘videoembed_videoembed', true) ?>

    I am not sure how the plugin works but you would need that get post meta or just the ID perhaps: ‘videoembed_videoembed'

    I am not a coder, so I need a little direction here if possible.

    Thanks,

    Mike

    #6910

    Mahi
    Member
    Post count: 1555

    Whats your theme name Mike?

    Please Search this forum as we already provided few solutions for couple of themes video embed before.

    Check this or, this

    If still having issue let us know.

    #6911

    Michael
    Participant
    Post count: 27

    Hi Mahi,

    Thank you for your response. Thank you for the links above, but I'm not sure they lead to a solution to my specific request. I also should have thought about searching for my theme. Unfortunately, it's not coming up in any search results.

    What I could gather from the links you provided was something about “Custom Fields in Post.” I also read about this in your documentation. I have clicked the little box beside it, but I'm not sure where to find the field to input any data when creating a form. In one example from the links above, I saw a meta field under images, but I'm still a bit confused.

    My theme is Bayside. You can find it here – http://themeforest.net/item/bayside-responsive-wordpress-theme/4071850?ref=OnWPThemes.

    I was hoping to have my video function included in the “Custom Fields” section of the plugin. This way I could add it to a form and select the order.

    Your plugin provides the perfect solution for my needs. If I can only get past this last hurdle, it will be perfect!

    I'd like to also include a screenshot of what I see in my theme admin. I'll put it at the bottom of this post.

    I also want to thank you for offering this plugin as an option to the WordPress community. So far I am very impressed and I value your contribution.

    Thanks,

    Mike

    Video Embed Screenshot

    #6912

    Mahi
    Member
    Post count: 1555

    Is your site online? then please give us login details. Reply as Private.

    #6913

    Michael
    Participant
    Post count: 27
    This reply has been marked as private.
    #6914

    Mahi
    Member
    Post count: 1555

    Hi there,

    Working fine without any issue.

    I created a test form with meta_keys which using by your theme. Please take your time and check that form.
    Also read through our Documentation.

    Cheers.

    #6915

    Michael
    Participant
    Post count: 27

    Mahi, thank you SO much! Now after seeing what you did, I completely understand how it works. You are a complete lifesaver and the chicken dance made me laugh.

    Thank you so much for making my day!!

    Mike

    #7184

    qinkqonk
    Participant
    Post count: 23

    hi.. i have the same question about custom field built in my theme..

    the custom field screenshot :
    custom field screenshot

    as i was asking before buying this PRO version
    it said that i will find the answer on PRO version
    thx before

    regards,
    BRAM

    #7185

    Mahi
    Member
    Post count: 1555

    Hello qinkqonk,

    Please open separate topic for your issue.
    When you create form you should see custom taxonomies or fields on right hand side. If you can't see them then you have to insert manually custom fields with right meta_key

    Thanks.

    #7186

    qinkqonk
    Participant
    Post count: 23

    uhm.. sorry, i thought it was the same topic..
    so, should i create new topic now?

    ok.. thx

    regards,
    BRAM

    #7188

    Michael
    Participant
    Post count: 27

    Hi BRAM,

    I'm not going to hijack your new thread, but I wanted to let you know what I have learned since posting this topic.

    So you know, I am new to both WordPress and this plugin. Given that, I now know how to properly extend this plugin to make it do what I want it to do.

    First, I learned that WPUF Pro allows you to put in general functions, like text fields and text areas. There are several others, but these two functions applied to my needs.

    When you create a form, you will see a list of options to the right. If you select text for example, a field becomes available in the main area. Under this new option (text) is an area that requires a meta key. Now, I had no idea what a meta key was. I was however impatient enough to bug my theme developer about the custom theme I purchased. In talking about the custom field he put into my theme, he gave me a few important clues. I didn't know it at the time, but Mahi picked up on it right away.

    My theme developer gave me some meta data. You can find that in this post. In that meta data was a “post_ID.” That ID was the meta key I needed. In my case, it was videoembed_videoembed.

    Now, Mahi helped me with my form, he used a “text area” custom field and put “videoembed_videoembed” in the meta key section. After that was saved, I had all of my themes video embed functions available in the form for my users.

    Now that I have learned where and how to use these meta keys, I have incorporated other plugins into my form. All I have had to ask the plugin developers is what meta keys they have used for their backend forms. Knowing this, along with the kind of field necessary, I can bring everything to the frontend.

    I hope this helps you, or anyone else seeing this. I am coming from a complete noobie perspective. Most of this might be obvious to most, but not to me.

    Have a great night,

    Michael

    #7191

    qinkqonk
    Participant
    Post count: 23

    hi, michael..
    thx for joining in…

    i also tried to figure the relationship of “meta key” and “custom field ID” on my theme

    custom field code

    is that the same ID like your “Post_ID”, or i still have to lookin another one?

    and the thing im not so sure is, there's “TS_CF_WP” before “ID”
    should i put TS_CF_WP before ID also in the meta key, or not?

    regards,
    BRAM

    #7192

    Michael
    Participant
    Post count: 27

    Hi Bram,

    I do wish I had answers to your questions, but like you, I am new to all of this. But I can tell you this, I have found the right questions to ask of those who develop our WordPress themes and plugins.

    Here is what I would do if I were you. I would contact your theme developer. I would tell them that you have a need for your users to create posts, but only on the front end. I would also tell them that you have a “form creator” that makes this happen, but in order for your users to use this form, you need the meta keys that are used for “Price”, “Price Suffix” and “Listing Type.”

    Give your image, you know that the first two use the WPUF Pro “text” custom field. You'd want to choose those for price and price suffix – making sure you input the proper meta key from your theme developer in each. Then the listing type would be a “Radio” custom field. I have to say that I do not know how the radio field works though. I see that it has a meta key, but I've not use it.

    If you'd like, you can look at what I have done thus far on my site, using the WPUF Pro plugin. If you go to http://spoondish.com/, the register function was created using WPUF Pro. I have also created the ability for users to submit a video (which was only offered as a backend option from my theme creator). If you create an account, then click on the “Recipe Review” option, you will see WPUF Pro at work.

    You need to know that at the time of this posting, Spoondish.com is a work in progress and it may or may not reflect this plugin. (This is for those people in the future who may read this post and spoondish.com may relate to digging up sand crabs in a human post apocalyptic Las Vegas).

    All I needed was the meta key information from my theme or plugin developers to make this all work for me.

    If you have any further questions from me specifically, please post here. Just know that when you post your own thread in this forum, you will get amazing support. Mahi was the one who helped me help myself, so I recommend asking the developers for direct assistance.

    Best of luck,

    Michael

    #7193

    qinkqonk
    Participant
    Post count: 23

    hi michael,
    very tasty website you have…

    come to indonesia, we have thousands chicken recipes with many tropical spices
    ๐Ÿ™‚

    yeah.. i have asked to wedevs support..
    makin new topic.. i hope they're on it right now

    very unlikely, my theme developer has shut off their support..
    i have this theme for years, and they got css conflict with contact form 7 and wpuf pro plugin

    until last night i figured that they have same jquery-ui.css
    and my theme has modified it, so when the wpuf pro plugin / contact form 7 activated
    my site's layout totally messed up..

    so, i have to inspect all three now..

    btw, nice to meet you, michael

    regards,
    BRAM

Viewing 15 posts - 1 through 15 (of 16 total)

The topic ‘Adding a custom field?’ is closed to new replies.