Page Template Coding Help Needed For Wordpress !!

2 replies
  • WEB DESIGN
  • |
I just installed the mingle forum plugin to my blog, i created a page and place the coding there for the forum to show however all of the page templates that come with the theme, when selected shows the side bar. Thus my forum cannot expand to its full width, instead it takes up half of the page's width while the other half is taken up by the sidebare.

All the templates for my wordpress theme are like this.

So i manually removed the sidebar coding from the " popular page template".
Now i am getting the full with of the page however when i use that template for my blog page"forum" i see noting, the page is blank, no forum images nor outlined structure.

With that problem i am now thinking about adding the code that i got from my plugin manually to the "popular page template"

which is= [mingleforum]

The problem is that i don't know how create a php coding that will work..

Hope you understand the problem that i am having here.

Below is what the current code of my "popular page template".

Can anyone help me to place the forum cod e in there or is there any other way to do this.

<?php
/*
Template Name: Popular
*/
?>

<?php get_header(); ?>


<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>

<div class="post-meta" id="post-<?php the_ID(); ?>">
<h1><?php the_title(); ?></h1>


</div>


<div class="post-view-com">
<?php if(function_exists('the_views')) : ?><span class="view-count"><?php the_views(); ?></span><?php endif; ?>
</div>


<div class="post-content">

<?php if (function_exists('get_highest_rated')): ?>
<h3>Highest Rated</h3>
<ul>
<?php get_highest_rated(); ?>
</ul>
<?php endif; ?>


<?php if (function_exists('get_most_rated')): ?>
<h3>Most Rated</h3>
<ul>
<?php get_most_rated(); ?>
</ul>
<?php endif; ?>


<?php if (function_exists('get_most_viewed')): ?>
<h3>Most Viewed Post</h3>
<ul><?php get_most_viewed(); ?></ul>
<?php endif; ?>


<?php if(function_exists("akpc_most_popular")) : ?>
<h3><?php _e('Most Popular'); ?></h3>
<ul>
<?php akpc_most_popular(); ?>
</ul>
<?php endif; ?>

</div>

</div>

<?php endwhile; ?>

<?php include (TEMPLATEPATH . '/paginate.php'); ?>

<?php else: ?>

<?php include (TEMPLATEPATH . '/result.php'); ?>

<?php endif; ?>

</div>



<?php get_footer(); ?>
#coding #needed #page #template #wordpress
  • Profile picture of the author Jonas B
    [mingleforum] is a shortcode.. so you can place it directly into your post.

    or if you really want it you can do something like echo do_shortcode('[mingleforum]'); after <div class="post-content"> i guess..
    Signature
    Proud owner of the most flexible mobile app builder. Check it out at http://bit.ly/hybrica!
    Mobile Web Expert & Android Developer
    {{ DiscussionBoard.errors[4960603].message }}
  • Profile picture of the author abrahamgpg
    Create a new page for the forum. Call it "Forum" or "Mingle" or "anything you like".

    change the view to html. Insert the shortcode [mingleforum]. Select the page template "Popular" from the templates dropdown list. Update or publish the page.

    View the page. It should show your forum.
    Signature
    Live each day as if it are your last day.

    Online Marketing Tips at Abraham's Tips.com.
    Marketers need to be trustworthy.
    Get your TRUST verified SEAL here.
    {{ DiscussionBoard.errors[4962288].message }}

Trending Topics