• Resolved Pete

    (@perthmetro)


    I am using the Tribe Events Calendar that uses hidden custom fields for it’s event dates (_EventStartDate). Unfortunately your plugin only provides a dropdown list of visible custom fields. Is there anyway you can update your plugin to include hidden custom fields or is their a hack I can do that will allow it?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    Hello @perthmetro,
    first of all, I am very sorry for the late reply, but sometimes the forum doesn’t send me any email regarding new posts here… so I was not aware of your request.

    Anyway, in the next version of this plugin you will have a new filter, added specifically for this request. The new version of the plugin should arrive in the next few days, since the plugin received a lot of changes, this included. ??

    The filter is pis_selected_metas and is used to add other custom fields to the dropdown list in the widget admin. So, even if the custom field is protected, you will see it.

    In order to add a custom field to the list, use a function like this:

    function change_posts_in_sidebar_metas( $options ) {
    	$options[] = array(
    		'value' => '_EventStartDate',
    		'desc'  => 'Event start date',
    	);
    
    	return $options;
    }
    add_filter( 'pis_selected_metas', 'change_posts_in_sidebar_metas' );

    Obviously, wait for the new version before using it.

    I’ll let you know here, when I will release the new version.

    Thread Starter Pete

    (@perthmetro)

    Thanks for the update. Much appreciated.

    Plugin Author Aldo Latino

    (@aldolat)

    Hello @perthmetro,
    I just released the new version 4.9.0. Update and test if it works as expected.

    Don’t forget to add a function like the one I gave you in my previous post.

    Let me know, please.

    Thread Starter Pete

    (@perthmetro)

    Thanks again, i’ll try it out and let you know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display hidden custom fields’ is closed to new replies.