Zurück   WordPress Deutschland Forum > Support > Design

Antwort
 
Themen-Optionen Ansicht
Alt 25.01.2008, 22:36   #11 (permalink)
PostRank: 0
 
Registriert seit: 06.01.2008
Beiträge: 17
ui. danke für die schnelle antwort.

hab das gerade so gelöst:

PHP-Code:
        <?php
           
if (is_home())
           {
            
query_posts("cat=1");
           }
         
?>
und es wird nur noch die hauptkategorie angezeit
leme ist offline   Mit Zitat antworten
Alt 22.02.2008, 15:44   #12 (permalink)
PostRank: 1
 
Registriert seit: 01.09.2005
Beiträge: 21
ich will bei mir kategorie 9 ausblenden, aber ich kriege es einfach nicht hin grrrr kann mir wer helfen?
das in rot ist der eingefügte code. hat überhaupt keine auswirkung hmmmmzzzzz grrrrrr.
da ist mein derzeitiger code...


Code:
<?php get_header(); ?>



<div id="content_main">





<table border="0" cellpadding="0" cellspacing="0" width="519">

  <tbody><tr><td>



<table class="blog" cellpadding="0" cellspacing="0">

<tbody><tr><td valign="top">



<div>



<table class="contentpaneopen">

<tbody>





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

        <?php if (! in_category('9')) { ?>
        <div class="post" id="post-<?php the_ID(); ?>">

<?php } ?> 


<tr><td class="contentheading" width="100%">		

<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>	</td></tr>



<tr><td> <span class="small"><?php the_time('F jS, Y') ?> under <?php the_category(', ') ?>.  [ <a href="<?php comments_link(); ?>"><strong>Comments:</strong> <?php comments_number('none','1','%'); ?></a> ]

<?php edit_post_link('Edit',' [ ',' ] '); ?></span></td></tr>



<tr> <td width="100%"> <p> 

<?php the_content('Read more »'); ?></p>

<hr size="1" color="#666666">

</td> </tr>





<?php endwhile; ?>



<tr> <td> <p><?php next_posts_link('« Previous entries') ?> <?php previous_posts_link('Next entries »') ?> </p> </td> </tr>



<?php else : ?>

<tr> <td>

<h2>Not found!</h2>

<p>Could not find the requested page. Use the navigation menu to find your target, or use the search box below:</p>

<?php include (TEMPLATEPATH . "/searchform.php"); ?>

</td></tr>



<?php endif; ?>



</tbody></table>

</div>

</td></tr></tbody></table>

</td></tr></tbody></table> </div>

<!-- end main body -->

</div></div>



<?php get_sidebar(); ?>



<?php get_footer(); ?>

Geändert von redman (22.02.2008 um 16:26 Uhr). Grund: code war falsch
redman ist offline   Mit Zitat antworten
Alt 25.06.2009, 12:47   #13 (permalink)
PostRank: 2
 
Registriert seit: 24.09.2008
Beiträge: 88
Kategorie ausblenden

Hallo WP-Gemeine,
wenn ich die Cat in meinem Blog in der index.php so ausblende >
PHP-Code:
<?php query_posts($query_string 'paged&posts_per_page=5&cat=-6,'); ?>
Dann erscheint beim anklicken der Blogkategorien immer die Startseite.
Was muss ich daran ändern?
Ich will eine Kategorie auf der Startseite ausblenden aber eben NUR auf der Startseite

Geändert von telino (25.06.2009 um 12:48 Uhr). Grund: Hilfe - Abo
telino ist offline   Mit Zitat antworten
Alt 21.12.2009, 18:24   #14 (permalink)
Zk2
PostRank: 0
 
Registriert seit: 08.05.2009
Beiträge: 5
ich bekomme das nicht hin:-(

hat sich bereits erledigt!

Geändert von Zk2 (21.12.2009 um 19:09 Uhr).
Zk2 ist offline   Mit Zitat antworten
Alt 03.02.2011, 00:25   #15 (permalink)
PostRank: 2
 
Registriert seit: 28.11.2010
Beiträge: 69
Kategorie ausblenden!!!

Hallo WP Nutzer,

also ich habe in sämtlichen Threads hier geschaut und die verschiedenen Vorschläge an meinem Theme ausprobiert, aber ich habe es nicht geschafft meine Kategorie mit der id 144 auszublenden.

Also ich möchte die Kategorie ausblenden, aber trotzdem über den link der kategorie zugriff haben.

Ich habe auch den Excluder Plugin probiert, mit dem verträgt sich mein Theme nicht, ausserdem verlangsamt mein Blog dadurch.

Ich habe den Theme Carrington Blog.

Meine Index.php sieht so aus:

PHP-Code:
<?php

// This file is part of the Carrington Blog Theme for WordPress
// http://carringtontheme.com
//
// Copyright (c) 2008-2009 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
// **********************************************************************




if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }

// NOTE: this file is here for compatibility reasons - active templates are in the posts/ dir 

cfct_posts();

?>
und das theme hat ein category.php der so aussieht:

PHP-Code:
<?php

// This file is part of the Carrington Blog Theme for WordPress
// http://carringtontheme.com
//
// Copyright (c) 2008-2009 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
// **********************************************************************

if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
if (
CFCT_DEBUG) { cfct_banner(__FILE__); }

get_header();






$cat_title '<a href="'.get_category_link(intval(get_query_var('cat'))).'">'.single_cat_title(''false).'</a>';

?>

<div id="content">
    <h1 class="page-title"><?php printf(__('Category Archives: %s''carrington-blog'), $cat_title); ?></h1>

    <div class="description"><?php echo category_description(); ?></div>

<?php


    cfct_loop
();
    
cfct_misc('nav-posts');
?>

</div>
<?php 
get_sidebar
();

get_footer();

?>
Wie gesagt, ich habe alle ausprobiert, ich mache wohl irgendwas falsch. Zumal ich auch garkeine Programmierkenntnisse habe.

Gruß
Resul
Resul ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist aus.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 00:48 Uhr.


Powered by vBulletin® Version 3.8.7 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 | Impressum | Ein Inpsyde.com Projekt