• Resolved its7eleven

    (@its7eleven)


    Hello,

    Is it possible to add a custom field and is it possible to remove the category link to the category page?

    Thank you for the great plugin and your help.

    Best,
    Michael

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi Michael,

    It’s possible to add a custom field but for that you should make some major changes to the plugin. Do you want to use Advanced Custom Fields plugin for that, or just wondering how to do it?

    You can hide the event category link(s) via the settingspage Settings > VSEL.. is this what you want? Or do you want to hide it on a certain type of page only?

    Guido

    Thread Starter its7eleven

    (@its7eleven)

    Hello Guido

    Thank you for your answer. I tried with Advanced Custom Fields but unfortunately without success. Can you explane me how to use it?

    Thank you.

    Best,

    Plugin Author Guido

    (@guido07111975)

    Hi Michael,

    If you’re using the ACF plugin, you can create extra event fields. But you want to display those fields in the frontend of your website. For that you should change plugin file “vsel-list”. Without changing my plugin file it won’t be possible.

    For example, if you want to display a custom field called “my_field” underneath the date field, this might be the way to do this:

    Open plugin file “vsel_list” and make some space underneath the date code (line 68).
    Add this:

    
    $field = get_field( "my_field" );
    $output .= $field;
    

    Note: not tested. Try on a local install first, not on a live website.

    Guido

    Thread Starter its7eleven

    (@its7eleven)

    Thank you so much you helped me so much!

    Plugin Author Guido

    (@guido07111975)

    Did it work?

    If yes, it’s nicer to wrap the field in a paragraph tag:

    
    $field = get_field( "my_field" );
    $output .= '<p>' . $field . '</p>';
    

    Guido

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add custom field’ is closed to new replies.