Janet Riley

How to make Simple:Press work with Graphene

November 30, 2012 | In wordpress

The Wordpress Graphene theme is incompatible with the Simple:Press plugin. Here’s a workaround.

The symptoms: You install the Simple:Press plugin. When you look at the forums page, there’s no content.

Simple:Press advises changing the page template to call the_content() instead of the_post(). This fix makes the forum page content appear, but all of the other pages render blank.

The solution: Make a new template for the forum page.

  1. Make a new template page. From the command line or file browser, navigate to the theme directory in /wp-content/themes/Graphene . Copy page.php and name the copy forum.php .
  2. Change it to use the_content(). Edit forum.php with a text editor or with the Wordpress editor under Dashboard > Appearance > Editor.
    Make the following changes (highlighted in red)
    /**
    * //add these lines to name and describe the new template
    * Template Name: My Simple:Press - Forum Template
    * The Template for displaying all forum pages.

    */

get_header(); ?>

/* Run the loop to output the pages.
* If you want to overload this in a child theme then include a file
* called loop-page.php and that will be used instead.
*/

//comment or delete this line
//the_post();
//add this line
the_content();

get_template_part( 'loop', 'page' );
?>

Save.

  • Make the forum page use the new template.SimplePress automatically creates a top page to display the forums called, appropriately, Forum. From the Wordpress Dashboard > Pages > All Pages, find and edit this page. In the Page Attributes area, select your new template from the template dropdown list.

    Save the changes. View the page to confirm.