Title: installing php code?
Last modified: August 30, 2016

---

# installing php code?

 *  Resolved [mikejersey](https://wordpress.org/support/users/mikejersey/)
 * (@mikejersey)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/installing-php-code/)
 * Hi.
 * Silly question perhaps…
    I dont work with php so Im having problems installing
   the php code in the theme.
 * Im using twenty thirteen theme and according to the instructions, I need to add
   the code;
    <?php if(is_user_logged_in()) { $renc=new RencontreWidget; $renc->
   widget(0,0);} ?>
 * into page.php.
 * I can edit ‘Twenty Thirteen: Page Template (page.php)’, but the problem is that
   I dont know where to insert the code so that it works and does not generate an
   error. :/
 * Can you assist please?
    Thanks
 * [https://wordpress.org/plugins/rencontre/](https://wordpress.org/plugins/rencontre/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jacques Malgrange](https://wordpress.org/support/users/sojahu/)
 * (@sojahu)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/installing-php-code/#post-6512003)
 * Hi,
 * I just change the F.A.Q to complete this part. In your case, with theme 2013,
   you need to delete all your page-rencontre.php content and replace with this 
   content :
 *     ```
       <?php // theme 2013
       /**
       Template Name: page-rencontre
       */
       get_header(); ?>
       	<div id="primary" class="content-area">
       		<div id="content" class="site-content" role="main">
       			<div class="site-info">
       				<?php if(is_user_logged_in()) {$renc=new RencontreWidget; $renc->widget(0,0);} ?>
       				<?php if(!is_user_logged_in()) Rencontre::f_ficheLibre(); ?>
       			</div><!-- .site-info -->
       		</div><!-- #content -->
       	</div><!-- #primary -->
       <?php get_footer(); ?>
       ```
   
 * Regards,
 *  Thread Starter [mikejersey](https://wordpress.org/support/users/mikejersey/)
 * (@mikejersey)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/installing-php-code/#post-6512092)
 * Ah. 🙂 Thanks very much for your reply. I will be trying that later. Regards.
   M
 *  Plugin Author [Jacques Malgrange](https://wordpress.org/support/users/sojahu/)
 * (@sojahu)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/installing-php-code/#post-6512242)
 * Resolved

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘installing php code?’ is closed to new replies.

 * ![](https://ps.w.org/rencontre/assets/icon-128x128.png?rev=990206)
 * [Rencontre - Dating Site](https://wordpress.org/plugins/rencontre/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rencontre/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rencontre/)
 * [Active Topics](https://wordpress.org/support/plugin/rencontre/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rencontre/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rencontre/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jacques Malgrange](https://wordpress.org/support/users/sojahu/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/installing-php-code/#post-6512242)
 * Status: resolved