Forum Replies Created

Viewing 15 replies - 76 through 90 (of 103 total)
  • Thread Starter downfast

    (@downfast)

    Found this:

    “How can I display an image in the same Post or Page without it being a part of the Gallery?
    Any image you upload in the same Post or Page where your Gallery appears will automatically be included in that Gallery. Inserting an image which was uploaded via “Media>Add New” in the Dashboard is not attached to a specific Post or Page and will become attached to the Post or Page where your Gallery appears. This causes the image to be displayed twice, once in the Gallery and again indivdually. The solution is to upload the image to your Media Library from a different, existing Post or Page. Once your images have finished uploading, save your changes and then close the Image Uploader, then go back to the Post or Page where you want to insert the separate image. Click on the “Add Image” button and in the Image Uploader, click on “Insert in Post” button to insert the individual image in your Post or Page. In order to avoid navigation problems, you should link the image to either “None” or “Image URL”.” Ref: https://gammagirl.wordpress.com/2008/07/27/not-the-official-wordpresscom-gallery-faq/

    Very annoying but it works and I guess I will have to use it. I am thinking of creating one not published page where I will only attach all the images used as headers for the other pages i will create, by doing this those images won’t be attached to each page as I will insert them via the media library resulting not be displayed in the pages gallery.

    Thread Starter downfast

    (@downfast)

    it works, thanks.

    final code:

    <?php
    /*
    Template Name: Blog
    */
    get_header(); ?>
    
    <div id="content" class="narrowcolumn" role="main">
    
    <?php $max_entries_per_page = 10;
    $current_page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    
    query_posts("cat=1&paged=" . $current_page)?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <div id="blog" class="clearfix" >
    
    			<div <?php post_class("blogpost clearfix") ?> id="post-<?php the_ID(); ?>">
    			<div class="postImg">
    		<?php get_the_image( array( 'custom_key' => array( 'medium', 'medium' ), 'default_size' => 'medium' ) ); ?>
    		</div>
    		<div class="postContent">
    				<h2 class="blogHeading"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<p class="date"><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    
    				</div>
    <?php previous_post_link('&laquo; %link') ?>
    		<?php endwhile; ?>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php get_search_form(); ?>
    	</div>
    	<?php endif; ?>
    </div>
    <?php next_posts_link('? Older Entries', $max_entries_per_page) ?>
    <?php previous_posts_link('Newer Entries ?', $max_entries_per_page) ?>
    
    <?php get_footer(); ?>

    Thread Starter downfast

    (@downfast)

    anyone?

    Thread Starter downfast

    (@downfast)

    for example this code shows me previous and next page but if i click doesn’t work, see the bottom of the code

    <?php
    /*
    Template Name: Blog
    */
    get_header(); ?>
    
    <div id="content" class="narrowcolumn" role="main">
    
    <?php query_posts("cat=1"); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <div id="blog" class="clearfix" >
    
    			<div <?php post_class("blogpost clearfix") ?> id="post-<?php the_ID(); ?>">
    			<div class="postImg">
    		<?php get_the_image( array( 'custom_key' => array( 'medium', 'medium' ), 'default_size' => 'medium' ) ); ?>
    		</div>
    		<div class="postContent">
    				<h2 class="blogHeading"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<p class="date"><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    
    				</div>
    
    		<?php endwhile; ?>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php get_search_form(); ?>
    	</div>
    	<?php endif; ?>
    </div>
    <div class="navigation"><p><?php posts_nav_link(); ?></p></div>
    </div>
    
    <?php get_footer(); ?>

    Thread Starter downfast

    (@downfast)

    hi thanks, nothing shows up, i don’t understand…

    Thread Starter downfast

    (@downfast)

    superb it works ?? thank you

    superb; it works ??

    Thread Starter downfast

    (@downfast)

    i am trying to use this within the loop <?php remove_filter('the_content', '<img>');?> but it doens’t work, am i doing something wrong?

    Thread Starter downfast

    (@downfast)

    yep… thanks

    i had actually found it myself and i was going to set it as resolved; thanks for you help tho.

    Thread Starter downfast

    (@downfast)

    perfect, thank you.

    Thread Starter downfast

    (@downfast)

    right i have simply deleted and re-downloaded and installed cleaner gallery and now everything works ..mistery..might just be a wrong plugin install

    thanks!

    Thread Starter downfast

    (@downfast)

    i did. i can see all of them and if i use another bit of code it works and i can see all the images; but this bit of code it is not what i want to use.

    Basically i have noticed that if i deactivate cleaner gallery and i use that shortcode all the images are displayed correctly, otherwise only 3.

    It’s weird, i am not sure why

    Thread Starter downfast

    (@downfast)

    right it has something to do with cleaner gallery…

    Thread Starter downfast

    (@downfast)

    yes and that is exactly what i want to do.

    But i want to be able to show all the images attached to that particular page, i have 10 but it only shows 3 using this :
    <?php echo do_shortcode('[gallery columns="3" size="medium" link="file"]'); ?>

    im not sure why is doing that

    Thread Starter downfast

    (@downfast)

    mm how about i manually hard code the links on the menu and link them to each individual page ?
    This site won’t have more pages than the ones i will hard code. So basically link them to some permanent links.

    In this case i’d be able to manually insert the css classes myself within the sidebar.php

Viewing 15 replies - 76 through 90 (of 103 total)