Wordpress template question
PWAwrestling (5 pencils) | Sat, 2009-11-07 04:21Hey, everybody. I'm trying to customize a wordpress template to include a flash box in the first big area, but I can't figure out what I'm supposed to do to my code here to make it work.
The template in question can be viewed here: http://www.grizztopia.com/pwawrestling/
The flash movie (just created for spacing purposes) is here: http://www.pwawrestling.ca/greeny.swf
And the code is here. I figure it's the "tier1main" that's the area I want to change up, but I'm not sure what to do about the php code in there. Anybody got any suggestions?:
-------------------
<?php global $themeoptionsprefix; get_header(); ?>
<?php $themeison=get_option($themeoptionsprefix.'_newsmaglayon'); if(!isset($themeison) || empty($themeison) || ($themeison == 'off') ){include (TEMPLATEPATH . '/index.php');}else{?>
<?php global $wpdb; $featuredpostscatname1=get_option($themeoptionsprefix.'_featuredcat1');
$featuredpostscatname1=str_replace("&","&",$featuredpostscatname1);
$featuredpostscat1 = get_cat_id($featuredpostscatname1);
if(isset($featuredpostscat1) && !empty($featuredpostscat1)){ include (TEMPLATEPATH . '/includes/featured1.php'); } else { ?>
/images/samplethumb5.jpg" alt="" border=""/>
Place holder post title
This space will contain the excerpt from the headlined post for "Featured Category #1".
Read More
- First headline link from Featured Category #1
- Second headline link from Featured Category #1
- Third headline link from Featured Category #1
- Fourth headline link from Featured Category #1
- Fifth headline link from Featured Category #1
/images/samplethumb4.jpg" alt="" border=""/>
This is a sample headline for a Featured Category #1 post »
<?php } ?>
<?php global $wpdb; $featuredpostscatname2=get_option($themeoptionsprefix.'_featuredcat2');
$featuredpostscatname2=str_replace("&","&",$featuredpostscatname2);
$featuredpostscat2 = get_cat_id($featuredpostscatname2);
if(isset($featuredpostscat2) && !empty($featuredpostscat2)){ include (TEMPLATEPATH . '/includes/featured2.php'); } else { ?>
Featured Category #2
/images/samplethumb1.jpg" alt="" border=""/>
Place holder post title
This space will showcase thumbnails and headlines from a category of your choice.
All you have to do is...
/images/samplethumb2.jpg" alt="" border=""/>
Place holder post title
...select a category from the theme options page next to the option that reads "Featured Category #2".
/images/samplethumb3.jpg" alt="" border=""/>
Place holder post title
To prevent the layout from becoming distored due to too many post excerpts, only three posts will be displayed.
<?php } ?>
<?php if(get_option($themeoptionsprefix.'_turnonofftierx') != "off" ){ ?>
<?php if(get_option($themeoptionsprefix.'_tierxposition') == "under tier one" ){ ?>
<?php include (TEMPLATEPATH . '/includes/tierX.php'); ?>
<?php } ?>
<?php } ?>
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('IndexPageSidebar') ) : ?>
Categories
-
<?php wp_list_categories('title_li='); ?>
<?php endif; ?>
<?php if(get_option($themeoptionsprefix.'_filler120600hide') != "hide" ){ ?>
<?php } else { ?>
<?php } ?>
<?php global $wpdb; $featuredpostscatname3=get_option($themeoptionsprefix.'_featuredcat3');
$featuredpostscatname3=str_replace("&","&",$featuredpostscatname3);
$featuredpostscat3 = get_cat_id($featuredpostscatname3);
if(isset($featuredpostscat3) && !empty($featuredpostscat3)){ include (TEMPLATEPATH . '/includes/featured3.php'); } else { ?>
Featured Category #3
/images/samplethumb6.jpg" alt="" border=""/>
Text from featured post with photo pulled from "Featured Category #3". One post with photo will be pulled from
3rd featured category. To choose category go to theme options page setting for "Featured Category #3". Read More
<?php } ?>
<?php global $wpdb; $featuredpostscatname4=get_option($themeoptionsprefix.'_featuredcat4');
$featuredpostscatname4=str_replace("&","&",$featuredpostscatname4);
$featuredpostscat4 = get_cat_id($featuredpostscatname4);
if(isset($featuredpostscat4) && !empty($featuredpostscat4)){ include (TEMPLATEPATH . '/includes/featured4.php'); } else { ?>
Featured Category #4
/images/samplethumb8.jpg" alt="" border=""/>
Place holder post title
This space will showcase thumbnails and headlines from a category of your choice.
/images/samplethumb9.jpg" alt="" border=""/>
Place holder post title
All you have to do is select a category from the theme options page next to the option that...
/images/samplethumb10.jpg" alt="" border=""/>
Place holder post title
...reads "Featured Category #4". Only the most recent three posts will be displayed.
<?php } ?>
<?php if(get_option($themeoptionsprefix.'_filler120600hide') != "hide" ){ ?>
<?php if(get_option($themeoptionsprefix.'_filler120600') <> "" ){ ?>
<?php echo stripslashes(get_option($themeoptionsprefix.'_filler120600')); ?>
<?php } else { ?>/images/fsplash120.jpg" alt="" border=""/>
<?php } ?>
<?php } ?>
<?php if(get_option($themeoptionsprefix.'_filler120600hide') != "hide" ){ ?>
<?php } else { ?>
<?php } ?>
<?php global $wpdb; $featuredpostscatname5=get_option($themeoptionsprefix.'_featuredcat5');
$featuredpostscatname5=str_replace("&","&",$featuredpostscatname5);
$featuredpostscat5 = get_cat_id($featuredpostscatname5);
if(isset($featuredpostscat5) && !empty($featuredpostscat5)){ include (TEMPLATEPATH . '/includes/featured5.php'); } else { ?>
Featured Category #5
/images/samplethumb7.jpg" alt="" border=""/>
This is some text from the featured post with photo pulled from "Featured Category #4". This will be a brief excerpt. One post with photo will be pulled from the
fourth featured category, followed by linked headlines of more posts from the category. To choose the category for this section go to the theme options pagea and change
the setting for "Featured Category #5". Read More
Other Topics
- 1st headline from Featured Category #5
- 2nd headline from Featured Category #5
- 3rd headline from Featured Category #5
- 4th headline from Featured Category #5
- 5th headline from Featured Category #5
- 6th headline from Featured Category #5
- 7th headline from Featured Category #5
- 8th headline from Featured Category #5
- 9th headline from Featured Category #5
- 10th headline from Featured Category #5
<?php } ?>
<?php } ?>
<?php if(get_option($themeoptionsprefix.'_turnonofftierx') != "off" ){ ?>
<?php if(get_option($themeoptionsprefix.'_tierxposition') == "under tier two" ){ ?>
<?php include (TEMPLATEPATH . '/includes/tierX.php'); ?>
<?php } ?>
<?php } ?>
<?php get_footer(); ?>
----------------
Commenting on this Forum topic is closed.

You might be in the wrong forum. I don't think I've ever seen any Wordpress related question here.
The Construct Agency
Building Creative Brands for People
I agree it's the wrong forum, but your question is one I'm asking myself.
Leaky Penny
Check out what I've been up to lately!
http://petersonjoseph.com
I'm going to print it out and eat it.
-Unknown Artist