Support » Plugin: Five Star Restaurant Menu - WordPress Ordering Plugin » Is there a shortcode parameter to display title & description, not price?

  • Resolved Deborah


    Is there a shortcode parameter to display the menu item title, description, but not the price?

    I have menu items that will display in an appetizer menu section, with title, description, and price. A subset of the appetizer menu items will also display in another menu section, but they need to display without the price.

    I read the help documentation for the shortcode parameters, and I see the options to display content or not display content. What about portions of the content?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I should have included that I’m not using the plugin Menu Sections to create sections for my menus.

    I’m adding the individual menu items to my menu sections, since I’m using the plugin for catering menus, which display menu items across several sections in the same menu.

    Hi Deborah,

    No, there’s no option in the shortcode to just hide the price. In order to get it to display on one page but not another, you would need to do one of the following:

    1. Use a CSS rule that can target the price on that specific page. Your theme should append a class to the body tag which mentions the page ID. So if your page ID was 18 where you wanted to hide the price, you could do this:

    .page-id-18 .fdm-menu .fdm-item-price-wrapper {
      display: none;

    That would hide the price on just that page.

    2. If you want to remove the HTML elements completely, you can use the menu’s templating system to add some checks in the price template. You could then check the page ID or whatever attribute you’d like to show or hide the price.

    Thank you for the quick reply, Nate. I’d rather not use display: none, will investigate the templating system.

    Hi Deborah,

    It occurred to me that you could also filter the elements that are being rendered in the fdmViewItem class. To do this, you’d need to be familiar with WordPress’s Hooks system and be comfortable with PHP.

    The hooks you’d want to look at are here.

    To be honest, the template system is probably a little bit easier. But this solution would be more bulletproof if you have a client that might tamper with template files or you don’t want to make any modifications to your theme.

    Hi Nate,

    Thank you for another option, appreciate the info.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is there a shortcode parameter to display title & description, not price?’ is closed to new replies.