Restaurant

From IThemes Codex
Revision as of 13:11, September 11, 2011 by Ronald (Talk | contribs)
Jump to: navigation, search

Support Forum for Builder Block Restaurant

Contents

How to set up

  1. Download the Restaurant block plugin from here.
  2. Download the corresponding theme (either Entree or Entree Pub) from Member Panel.

How to enable commenting in single Location entry pages

1. Ensure that the latest version of Builder Blocks plugin is being used. See this to learn how to properly update plugins.

2a. Preferred: Add the following code to your child themes functions.php file

function add_comments_to_location() {
    add_post_type_support( 'restaurant_location', 'comments' );
}

add_action('init', 'add_comments_to_location');

2b. Alternatively, if 2a fails: edit wp-content/plugins/builder-block-restaurant/lib/post-types/2.location.php.

Note: Plugin customizations will be erased during plugin upgrades. So remember to re-do this when you update the plugin.

Change

    'supports'    => array( 'title', 'editor', 'thumbnail', 'excerpt' ),

to

    'supports'    => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ),


3. Edit wp-content/themes/BuilderChild-Entree/restaurant-location/single.php.

Change

    <?php //comments_template(); // include comments template ?>

to

    <?php comments_template(); // include comments template ?>

4. Go to My Theme -> Settings -> Comments. Place a tick mark for Locations and Save Settings.

Item 3

Item 4

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox