• Hey everyone,

    Within my website I have made it so that only registered subscribed users can see my ‘event_content’ area. ie the Main descriptive area.

    Now all I want to do is create a custom field that I can call in PHP but write in the WP UI so that non-members can have either a button or snippet of HTML that I can put into a custom field if necessary…

    Although I am new to PHP I thought this may be quite a simple process with the amount of blogs on it… The most useful one seems to be here https://www.ads-software.com/support/topic/plugin-all-in-one-event-calendar-new-field-in-the-form-create-new-event?replies=8 however a lot of the descriptive steps taken give the code in Line Numbers…

    As my site was developed by someone else who has made their own mods for functionality the line numbers given do not correspond to the right places in my code any more.

    I also question whether I need the full stages of this guide as I do not need to have it called as regular event content, just call it in PHP as
    ‘<?php if ($subscriber) { ?> **EVENT CONTENT**
    <?php } else { ?> **META BOX CONTENT**’

    Hope this makes sense. The link to the site is https://www.thinkingbob.co.uk/ but it would probably be more beneficial for you to see the code. If you need a section posting please ask and I’ll copy it up.

    https://www.ads-software.com/plugins/all-in-one-event-calendar/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Simple Custom Field to be called in PHP’ is closed to new replies.