janantha
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Footer is in Sidebardoes your side bar by any chance contain <? php get_footer ?> you might have that mistakenly in your sidebar.php
Forum: Themes and Templates
In reply to: How Do I Create New Page Templates?Does your theme support multiple templates?
Forum: Plugins
In reply to: Exclude postings from main RSS feed?Kafkaesqui you said “You’d have to do an exclude through an include (so to speak) by assigning to $cat the categories you want displayed (and not the ones you want to hide):
$cat=’2, 3, 4, 5′; “
It works fine but there is a minor problem. When i do like that on the homepage on the side bar it says “You are currently browsing the …..” so it says your browsing the archieve of the category “2” presented in the code above..
which is the very first category..but if you do a single exclusion such as $cat=-4; it wont show any.. i have more than one category to eleminate from homepage so i had to use the above code..unless there is an alternative ?? please help out..many thanks!Forum: Fixing WordPress
In reply to: Customizing Login Page?basically change ur loggin photo which is located inside wp-admin under images folder..dnt have to do anything with the script..
Forum: Fixing WordPress
In reply to: Customizing Login Page?that brings out the point what you want to edit?
you start editing the loggin photo for a start ??Forum: Plugins
In reply to: Exclude postings from main RSS feed?u have to have a filter condition to scrap the cats u dnt want capsulating your for loop so your condition can say until the post is not related to cat 1 and cat 2 post the rest..hope this helps
Forum: Plugins
In reply to: show singel category.nah that doesnt work purely because you will never see the posts related to the cat ur excluding when u call for it using ?cat=x but there is a really good fix
here it is..this works perfectly..and only gets rids of posts on homepage relating to that cat but keeps it so when u call it using URL?cat=x
https://www.ads-software.com/support/topic/39698?replies=5
Have a look..it worked for me and im a happy guy ??Forum: Fixing WordPress
In reply to: Customizing Login Page?no u dont..
Forum: Fixing WordPress
In reply to: Exclude Cat on Main Page in 2.0just found a good solution which works !
goto https://www.ads-software.com/support/topic/39698?replies=5
it works really well!
Forum: Fixing WordPress
In reply to: Exclude Cat on Main Page in 2.0i think if you use <?php if (is_home() && !in_category(4)) { ?>
Then you have to provide a copy which enclosure that on an else statement following that.. because that says if its the home pages and post does not belong to cat 4 it will do the loop. What if its not the home or not category 4? This is the point where it does show up any posts related to cat 4!!
therefore i think you should include an else <? php else {?> and copy paste the coding for showing posts..should work theorically..but i have to test and seeForum: Fixing WordPress
In reply to: Exclude Cat on Main Page in 2.0i encountered a major problem with the code ive posted! It gets off all the posts related to the cat 4 (my e.g. cat) and will never show them!! does any one got a solution for this?
Forum: Fixing WordPress
In reply to: Exclude Cat on Main Page in 2.0this works for me..im on WP 2.0
hi guys found the solution
its something like this<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!– The following tests if the current post is in category 3. –>
<!– If it is not, the code within The Loop is executed as normal. –>
<!– If it is, nothing is done until the next post is processed. –>
<?php if ( !(in_category(‘3’)) ) { ?><div class=”post”>
<h2>“><?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’); ?></small>
<div class=”entry”>
<?php the_content(); ?>
</div><p class=”postmetadata”>Posted in <?php the_category(‘, ‘); ?>
</div> <!– closes the first div box –><?php } ?> <!– Close the if statement. –>
<?php endwhile; else: ?>
Sorry, no posts matched your criteria.
<?php endif; ?>Forum: Everything else WordPress
In reply to: index display certain categoriesDude here is how to do it..i found the solution
Following this.it works
hi guys found the solution
its something like this<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!– The following tests if the current post is in category 3. –>
<!– If it is not, the code within The Loop is executed as normal. –>
<!– If it is, nothing is done until the next post is processed. –>
<?php if ( !(in_category(‘3’)) ) { ?><div class=”post”>
<h2>“><?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’); ?></small>
<div class=”entry”>
<?php the_content(); ?>
</div><p class=”postmetadata”>Posted in <?php the_category(‘, ‘); ?>
</div> <!– closes the first div box –><?php } ?> <!– Close the if statement. –>
<?php endwhile; else: ?>
Sorry, no posts matched your criteria.
<?php endif; ?>Forum: Fixing WordPress
In reply to: Selective category posts on the index page?hi guys found the solution
its something like this<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!– The following tests if the current post is in category 3. –>
<!– If it is not, the code within The Loop is executed as normal. –>
<!– If it is, nothing is done until the next post is processed. –>
<?php if ( !(in_category(‘3’)) ) { ?><div class=”post”>
<h2>“><?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’); ?></small>
<div class=”entry”>
<?php the_content(); ?>
</div><p class=”postmetadata”>Posted in <?php the_category(‘, ‘); ?>
</div> <!– closes the first div box –><?php } ?> <!– Close the if statement. –>
<?php endwhile; else: ?>
Sorry, no posts matched your criteria.
<?php endif; ?>Forum: Fixing WordPress
In reply to: Why can’t i select the page templates for pages on WP 2.0ok i thought about it before i sleep..well i have this section of the website which is totally seperate from the main categories… this section has its own subcategories..so what i want is basically to show up the latest stuff posted under those sub.cats. when you click on the link for it. e.g. assume the link from the homepage is called “e-library” when i click that the page that comes should contain the latest posts done by the subcategories of that section other than showing the latest posts from other cats of the website.. do you get what i mean..so if my brain works right..if i make replica of the index.php and name it differently and customise it i should be able to make the change rite…?