Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter bfunkera

    (@bfunkera)

    everything works great. Thank you for all of your help.

    Thread Starter bfunkera

    (@bfunkera)

    It is a seperate template. The page or index.php is what is creating the normal look to my site. I was wondering if i should copy everything below the pages and cats from page.php or index.php into pageofposts. will this give everything the same look and feel?

    Thread Starter bfunkera

    (@bfunkera)

    It worked using the advanced cat excluder. Thank you very much. One more question. The new pages do not look exactly the same as the old ones. This is because of the code in the pageofpost.php. I assume its because they dont match page.php. Should everything below

    <?php
    if (is_page('80') ) {
    $cat = array(11);
    } else {
    $cat = '';
    }

    be the same as in page.php?

    Thread Starter bfunkera

    (@bfunkera)

    Ok, i got it to work but now the posts are showing on the page i want them to AND the original posts page. How do I stop that

    <?php
    /*
    Template Name: PageOfPosts
    */
    
    get_header(); ?>
    
    	<div id="content">
    
    <?php
    if (is_page('80') ) {
    $cat = array(11);
    } else {
    $cat = '';
    }
    
    $showposts = -1; // -1 shows all posts
    $do_not_show_stickies = 1; // 0 to show stickies
    $args=array(
       'category__in' => $cat,
       'showposts' => $showposts,
       'caller_get_posts' => $do_not_show_stickies,
       );
    $my_query = new WP_Query($args); 
    
    ?>
    
    	<?php if( $my_query->have_posts() ) : ?>
    
    		<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    			<?php
    			//necessary to show the tags
    			global $wp_query;
    			$wp_query->in_the_loop = true;
    			?>
    			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></medium>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry ?'); ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments ?', '1 Comment ?', '% Comments ?'); ?></p>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('? Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries ?') ?></div>
    		</div>
    
    	<?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(); ?>
    
    	<?php endif; ?>
    
    	</div>
    	<div id="secondary">
    
    <?php include(TEMPLATEPATH."/l_sidebar.php");?>
    
    <?php include(TEMPLATEPATH."/r_sidebar.php");?>
    Thread Starter bfunkera

    (@bfunkera)

    i have the correct id’s, am I missing one at the end as a back up in case it cant find the page or cat?

    Thread Starter bfunkera

    (@bfunkera)

    darnit, didnt work. do I need to put another cat id or page id in there?

    Thread Starter bfunkera

    (@bfunkera)

    What I am looking to do is every time i create a post under the catid 11 I want it to show on page id 80. How does that translate into here

    <?php
    if (is_page('21') ) {
    $cat = array(12);
    } elseif ( is_page('16') ) {
    $cat = array(32);
    } elseif ( is_page('28') ) {
    $cat = array(17);
    } else {
    $cat = '';
    }
    Thread Starter bfunkera

    (@bfunkera)

    Do I keep using the same id’s over? or should the id’s in the first part be for some other page and cat?

    Thread Starter bfunkera

    (@bfunkera)

    I thought i was doing that in the first part. The ids i used in the first part are for the page and category i want to use. If this is wrong then what should be the succession of events or ids?

    Thread Starter bfunkera

    (@bfunkera)

    I imagine there is something else I have to change since it is not the Kubrick theme but wouldnt know where to start

    Thread Starter bfunkera

    (@bfunkera)

    Hey MichaelH, i gave A Page of Posts a try and couldnt get it. I think i might be having trouble here

    <?php
    if (is_page('80') ) {
    $cat = array(11);

    I left this off because it doesnt pertain

    } elseif ( is_page('16') ) {
    $cat = array(32);
    } elseif ( is_page('28') ) {
    $cat = array(17);
    } else {
    $cat = '';
    }

    And put this in

    $showposts = -1; // -1 shows all posts
    $do_not_show_stickies = 1; // 0 to show stickies
    $args=array(
       'category__in' => $cat,
       'showposts' => $showposts,
       'caller_get_posts' => $do_not_show_stickies,
       );
    $my_query = new WP_Query($args); 
    
    ?>
    
    	<?php if( $my_query->have_posts() ) : ?>
    
    		<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    			<?php
    			//necessary to show the tags
    			global $wp_query;
    			$wp_query->in_the_loop = true;
    			?>
    			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    Thread Starter bfunkera

    (@bfunkera)

    Yes coolambo, this is basically what I am looking to do. Does anyone know how I can do this? My php is very limited but i could probably do it given some assistance.

    Thread Starter bfunkera

    (@bfunkera)

    MichaelH, I understand what you mean about the archives, however, I would like to be able to post to the reunion page so that the posts always show only on the reunion page. I currently dont post to the reunion category because I dont want those posts to show on the normal posts page, which is Kiley’s Photo Blog. The two are not related so I want to be able to split them up.

    I also want to create another page for my sister to be able to post to separate from the the photo blog or reunion page. So in all I want to be able to choose what posts go to what page based on their category, will “A Page of Posts” allow me to do this? If so, do I just add the page to my server along with header.php, etc.?

    Thread Starter bfunkera

    (@bfunkera)

    Well I want to be able to post to a couple of different pages at different times. I dont want my posts to always show up on the posts page but would like a few of the pages to be for posts. These pages would correspond to a category so they always show up on that page.

    For example, if I have a a page set for posts now but have another page for a family reunion. When I have an update for the reunion I want to write a post and put it in the reunion category and have it show up on the reunion page. How might I do this? Thanks

    the site in question is https://www.thefullerfamilysite.com and you can see I have a reunion page that i would love to post to

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