Restaurant

(Difference between revisions)
Jump to: navigation, search
m
(How to enable commenting in single Location entry pages)
Line 10: Line 10:
 
'''1.''' Ensure that the latest version of Builder Blocks plugin is being used. See [http://ithemes.com/codex/page/General_WordPress_Related#How_to_update_a_plugin this] to learn how to properly update plugins.
 
'''1.''' Ensure that the latest version of Builder Blocks plugin is being used. See [http://ithemes.com/codex/page/General_WordPress_Related#How_to_update_a_plugin this] to learn how to properly update plugins.
  
'''2.''' Edit wp-content/plugins/builder-block-restaurant/lib/post-types/2.location.php.  
+
'''2a.''' Preferred: Add the following code to your child themes functions.php file
 +
 
 +
<pre class="brush:php;">
 +
function add_comments_to_location() {
 +
    add_post_type_support( 'restaurant_location', 'comments' );
 +
}
 +
 
 +
add_action('init', 'add_comments_to_location');
 +
</pre>
 +
 
 +
'''2b.''' Alternatively, if 2a fails: edit wp-content/plugins/builder-block-restaurant/lib/post-types/2.location.php.
 +
 +
<u>Note</u>: Plugin customizations will be erased during plugin upgrades. So remember to re-do this when you update the plugin.
  
 
Change
 
Change
Line 23: Line 35:
 
</pre>
 
</pre>
  
<u>Note</u>: Plugin customizations will be erased during plugin upgrades. So remember to re-do this when you update the plugin.
 
  
 
'''3.''' Edit wp-content/themes/BuilderChild-Entree/restaurant-location/single.php.
 
'''3.''' Edit wp-content/themes/BuilderChild-Entree/restaurant-location/single.php.

Revision as of 14:11, September 11, 2011

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