Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Nilles01

    (@nilles01)

    Now I have this

    <?php
    /*
    The default template for displaying content. Used for both single and index/page/archive/search.
    */
    ?>
    
    <?php if ( is_home() ) : /* Display Excerpts for Home */ ?>
    
    	<?php has_post_thumbnail()? $birdsite_image_tag = 'has-image' : $birdsite_image_tag = ''; ?>
    
    	<li id="post-<?php the_ID(); ?>" <?php post_class($birdsite_image_tag); ?>>
    		<?php if(has_post_thumbnail()): ?>
    			<div class="thumbnail">
    <?php
    if ( in_category('klein') ) {
     the_post_thumbnail('medium');
    } else {
      the_post_thumbnail('large');
    }
    ?>
    				<div class="more-link"><a href="<?php the_permalink(); ?>"><?php _e( 'more', 'birdsite' ); ?></a></div>
    		<?php endif; ?>

    Now I added a post in the category ‘klein’ but the image on the homepage still has the same size. How do I define multiple thumbnail sizes?

    Thread Starter Nilles01

    (@nilles01)

    So far I have this but it’s not working.

    <?php if ( is_home() ) : /* Display Excerpts for Home */ ?>
    
    	<?php has_post_thumbnail()? $birdsite_image_tag = 'has-image' : $birdsite_image_tag = ''; ?>
    
    	<li id="post-<?php the_ID(); ?>" <?php post_class($birdsite_image_tag); ?>>
    		<?php if(has_post_thumbnail()): ?>
    			<div class="thumbnail">
    				<?php if ( in_category('klein') ) {
    				the_post_thumbnail('medium'); ?>
    				<div class="more-link"><a>"><?php _e( 'more', 'birdsite' ); ?></a></div>
    			</div>
    <?php else { ?>
    				<?php the_post_thumbnail('large'); ?>
    				<div class="more-link"><a>"><?php _e( 'more', 'birdsite' ); ?></a></div>
    		<?php endif; ?>
    		<?php endif; ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I get “Parse error: syntax error, unexpected T_ELSE in /home/WEBSITE/wp-content/themes/birdsite/content.php on line 18” as an error

    Thread Starter Nilles01

    (@nilles01)

    Posted it there but I guess it could work with a lot of themes so it’s a general question as well.

    Since the last post here was 4 months ago, I was wondering if it if possible to post multiple Horizontal Post Sliders within one website and have them show different categories (and possibly have different layout).

    Would be very helpful.

    Thread Starter Nilles01

    (@nilles01)

    This script only excludes the COLUMNS from the BLOG page am I right?
    So how do I get a COLUMN page in the main menu, only showing COLUMNS

    Thread Starter Nilles01

    (@nilles01)

    With this I can exclude the COLUMNS frog the blog page but how do I create en COLUMS page where I can exclude the BLOGS. In the settingsmenu I can only appoint 1 page to show the messages.

    Thread Starter Nilles01

    (@nilles01)

    I’ve made the homepage a static one with a short text.
    Then I want to pages. One for Blogs, one for Columns.

    In settings I’ve appointed the messages to be shown on the Blog page but I also want messages on the Column page. And split them by category.

    Thread Starter Nilles01

    (@nilles01)

    With that link I’m able to add the text I want on top of a category when people view a certain category. But it does not solve the split I want on the homepage.

    IMAGE

    I’d like to have the categories in my main navigation. So if they click BLOGS they will only see the blogs (and the text I’d like to show on the top of the page). And if they click on COLUMNS, they only see the messages I linked to category ‘columns’.

    Thread Starter Nilles01

    (@nilles01)

    Ja op dat forum zitten we.
    Niet echt een reactie met toegevoegde waarde volgens mij.

Viewing 9 replies - 1 through 9 (of 9 total)