Hi Sanjay,
Two solutions :
First one
Your site is only a dating website. The plugin is on the home page.
=> The page is probably index.php of your theme.
Second one
You want a specific page for this plugin. You have to create a custom page template and put the code inside. Then, in admin, tab Pages, click on “add new” and select the right template.
In the twentythirteen template, i used page.php and add the plugin code to create page-rencontre.php.
Anyway, you’ll probably need to put the code in a DIV block to set position and width in CSS.
Jacques
Hi Jacques,
Trying Solution 1, to call the plugin directly from the theme.
I put the code in index.php, didn’t work. In page.php it didn’t work either.
I put it just after the header call, here is the code:
<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme and one of the
* two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* For example, it puts together the home page when no home.php file exists.
*
* @link http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/
get_header(); ?>
welcome to solos24.com....
<?php if(is_user_logged_in()) {
$renc=new RencontreWidget; $renc->widget(0,0);} ?>
The site is now showing as u can see here
http://www.solos24.com
Help please!
Merci
Sanjay
bonjour Jacques,
j’ai installation le plugin et je l’ai activé cependant ça ne s’affiche pas dans mon panel d’administration alors qu’il figure dans la liste des extensions activé j’utilise la version 3.9.2 de wordpress !
pourriez vous m’aider svp !
merci Alpha
Hi Sanjay,
You need to be connected as a member to see something (if(is_user_logged_in())).
So, you need to add at the top of your page the WP link to connect a member :
<?php wp_loginout(home_url()); if (!is_user_logged_in()) { ?>
<a href="wp-login.php?action=register"><?php _e('Register'); ?></a>
<?php } ?>
I think that’s it.
Hi baba93,
Don’t you see a red heart on the left with the label Rencontre ?
I have tested the 3.9.2 and it works.
Heu, in french …
Vous n’avez pas un coeur rouge dans le menu Admin avec le label Rencontre ?
J’ai installé la 3.9.2 et il n’y a pas de soucis.
Seems to work a bit better now. Will update.
Merci Jacques
Sanjay
ah si je vois le coeur rouge dans le menu admin pourriez vous m’expliquer en français la demarche à suivre pour l’installer car je ne comprend pas ce que vous voulez dire par ” page used for the dating part ” .
merci pour votre assistance
Alpha
Il y a un mode d’emploi en français ici pour créer un site de Rencontre avec ce plugin.
Cordialement,
install worked fine. the trick is to have this line at the top where u can add users. Just having “admin” doesn’t do it.