Jump to content
Sign in to follow this  
Danny

Setting up a plain page template for fancybox popup?

Recommended Posts

Danny

HI, I am trying to set up a plain template as mentioned here on how to load a gravityforms powered forum in a modal popup. The guide says it best to use a plain page template, now I basically copied and pasted the one given and it works apart from a small error at the bottom of the page: Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in I:xampphtdocswordpress2wp-includesplugin.php on line 395 Now the plain page template is the issue, as when I use the default pagelines page template, there is no error but the thing I need help with, how do I go about getting the same effect as the plain page template minus the error (above)...? Plain Page Template >> Here Thanks Dann


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny

Ok I've found that if I simply use this, this actually works but could someone with a bit more knowledge of this code, tell me if using this would be OK or would it cuase some errors?

<?php
	 /*
	 Template Name: Fancybox Modal
	 */
	?>
	
	<body>
	  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	  <?php the_content('read more'); ?>
	  <?php endwhile; endif; ?>
	
	</body>
	</html>


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
catrina

You can use it and if there are more errors that occur, post them here.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×