Support » Plugin: WPPizza » Custom fields/tags for menu items?

  • Resolved frogsplash

    (@frogsplash)


    Love the plugin, it appears it will be a perfect solution to posting all these menus as PDFs! The plugin has been working like a champ on my beta site, but I’m wondering about a couple of things:

    – Is it possible to add custom fields functionality to these posts? I am using the plugin to build a beer menu, and they have lots of different traits – brewer, brewer city, type of beer, etc. It would be awesome if I could get custom fields working, is there a functions.php hack that might get that working?

    – Possible in the shortcode to omit the title, or just use the description by itself?

    Many thanks for your hard work on a great plugin!

    http://wordpress.org/plugins/wppizza/

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

    (@ollybach)

    > ….is there a functions.php hack that might get that working?

    not at the moment, but it’s easy to do and not such a bad idea to make those things customisable.
    I’ll put it in the next update (maybe even later today) and post some example code here

    >Possible in the shortcode to omit the title….
    which shortcode in particular are we talking about here ?

    Thanks so much for the quick response. I’ll keep an eye out for the code, much appreciated.

    Shortcode: sorry, that was a bit vague. I’d like to essentially split the header into its title and description components.

    Example: [wppizza category=’burgers’ noheader=’1′] will kill the title/description, whereas [wppizza category=’burgers’ ] will show both. I’d love to be able to get either one individually.

    Plugin Author ollybach

    (@ollybach)

    re functions.php

    in v2.6.1 you could now use a filter like so:

    add_filter('wppizza_cpt_args','wppizza_cpt_arguments');
    	function wppizza_cpt_arguments($args){
    		$args['supports'][]='custom-fields';
    	return $args;
    	}

    re shortcode etc:
    you will have to edit the templates really (which you will probably have to do anyway if you want to display your custom fields somewhere)

    http://wordpress.org/plugins/wppizza/faq/
    -> can i edit the templates

    hope that helps (?)

    BRILLIANT! Many thanks for the update and the code snippet.

    frogsplash can you tell me more about what your doing with the custom fields?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom fields/tags for menu items?’ is closed to new replies.