Error adding a Pod via a theme
-
Hi guys,
Sorry if this question was already answered.
I am trying to add a Pod and some custom fields via my theme’s
functions.php
file. I’ve created this function:function themeslug_pods_register_custom_fields() { pods_register_type( 'post_type', 'themeslug_page' ); } // themeslug_pods_register_custom_fields add_action( 'init', 'themeslug_pods_register_custom_fields' );
As you can see, I’ve stripped this down to bare minimum but it still throws me an error in WP dashboard: https://easycaptures.com/fs/uploaded/848/1822267647.png
I’ve tried disabling all the other plugins but this didn’t help.
What I am trying to do is to add a metabox to easily set up custom fields for WordPress Pages. I want this to be automatically added through the theme once a user activates the Pods plugin. But I am stuck in here…
Could you please help me resolving the issue?
Thanks in advance!
Regards,
Oliver
- The topic ‘Error adding a Pod via a theme’ is closed to new replies.