Michael Klasno
Forum Replies Created
-
Forum: Plugins
In reply to: PHP IncludeOK, If anyone is interested I figured it out. Here is the actual code for category.php
>>>>>>
<?php if (in_category(’16’) && is_category() )
include(TEMPLATEPATH.’/news-tease.html’); ?>
<?php if (in_category(‘6’) && is_category() )
include(TEMPLATEPATH.’/pastors-prospective.html’); ?>
<?php if (in_category(’39’) && is_category() )
include(TEMPLATEPATH.’/guest-tease.html’); ?>
<?php if (in_category(‘101’) && is_category() )
include(TEMPLATEPATH.’/vantage-tease.html’); ?>>>>>>>>>>
here is the actual category 16 /news-tease.html file
>>>>>>>>>>>><h3 align=”center”>In the News</h3>
<h4 align=”left”>This section of our website contains stories that our editors actually found in other national newspapers and periodicals. Some are actual “News” while most are just human interest stories we found uplifting. We hope you enjoy these and if you come across a “Good News” story in your local paper that you would like to share with other believers please send us the link. </h4>
<hr />
You can see it here .. https://goodnewsandpraise.com/category/the-news/
Forum: Plugins
In reply to: PHP IncludeOK, I will try to explain a little better. As I said I AM NO CODEX WIZ>
I have created a few HTML Blocks (intro’s) that I want to include at the beginning (before the list of posts) as the different category pages load.
here is what I want to say
<?php if (is_category(‘Category A’)) : ?>
<?php get( $ abc.html ); ?>
Elseif (is_category(‘Category B’)) : ?>
<?php get( $ xyz.html ); ?>
Elseif (is_category(‘Category c’)) : ?>
<?php get( $ 123.html ); ?>
Elseif (is_category(‘Category d’)) : ?>
<?php get( $ 456.html ); ?>
<?php endif; ?>Am I close/ can anyone fix this for me?
I believe it will go into category.php?? formatted with .css and a DIV tag.?
Thank You in advance.
michaelForum: Fixing WordPress
In reply to: Add 'onload' command to the body classI tried it that way and it does not work. As stated in the original post I have to use the <body class=”<?php hybrid_body_class(); ?>”> along with the onload command.
the onload command rotates a HERO Picture.
here is an example where it is working on the html part of my website.
https://www.goldstardads.org/members/community/But I need it to work on the WP portion of the website (root)- right sidebar Meet one of our Heroes – here
https://goldstardads.org/I appreciate your help on this – it is an important part of the website for the members to know that when the public views our site they see our Heroes.
Michael
Forum: Fixing WordPress
In reply to: Add 'onload' command to the body classOK,? but the tutorial you sent me to doesn’t tell me anything.
How do i separate the two? I ASSUME I can’t have 2 <Body> tags? so I have to have the CLASS and the ONLOAD inside the BODY TAG, Correct?
michael
Forum: Fixing WordPress
In reply to: Add 'onload' command to the body classOK, then how would I add the onload command here?
<body <?php body_class(); ?>>
should it not work the same?
MichaelForum: Plugins
In reply to: [Paid Business Listings] [Plugin: Paid Business Listings] implementation linkNewest Update has a small BUG. the pulldown menu for the states doesn’t work (in ADMIN) to add listings. works fine on the public side but throws a error message in admin. Worked fine before update from v0.8 to v1.0
‘
<select name=”pbl_listing_state”><b>Warning</b>: Missing argument 1 for stateSelect(), called in /home/james512/public_html/DIYHelper.com/wp-content/plugins/paid-business-listings/inc/inc_pbl_listings_page.php on line 158 and defined in <b>/home/james512/public_html/DIYHelper.com/wp-content/plugins/paid-business-listings/inc/functions.php</b> on line <b>159</b>
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/james512/public_html/DIYHelper.com/wp-content/plugins/paid-business-listings/inc/functions.php</b> on line <b>171</b>
</select>’