WordPress.org

Ready to get started?Download WordPress

Forums

Moving Posts (7 posts)

  1. HomerUser
    Member
    Posted 1 year ago #

    Hi All.

    Im a newbie and l dont understand any programs outside of Design based ones even then its the creative side and not the side that makes it tick.
    I had a blogg site and then bought some web space and moved everything over from the blog.
    What l would like to know is I have all the posting both new and old in the one section. 'Home' l would like to know how do l move the older posts to a new page/section that l have named 'Older Postings' so that the new postings are the only ones showing on what is the 'Home Page'?

    I hope this is clear as in my head it is however you all may have the knowledge to make things happen right away.

    Hope you can help

    Have a wonderful weekend

    Alan Scott

  2. ricardusexa
    Member
    Posted 1 year ago #

    you said you had a blog site. Is it also in wordpress?

  3. keesiemeijer
    moderator
    Posted 1 year ago #

    Do you want to show posts from after a specific date on the home page and post before that specif date on your "older posts" page?

  4. HomerUser
    Member
    Posted 1 year ago #

    Hi sorry if lm not giving all information.
    Yep the site is a WordPress one. I never knew it existed till l came across it via y-tube.
    So when l set up the new WordPress site on my old .com site [that was deleted and this replaced it] So l used the transfer blog over widget.
    This has a lot of graphic orientated postings as l make card samples for companies.
    I would like to move a lot of the older posts over to a new page on the blog l have called Older Postings but keeping the newer ones live on the Home page. This is where they are published as matter of course via the New Posting section of WordPress.

    Hope this might help a little better as questions ask means l can give more information.

    Many thanks for taking the time out of your weekend to help me.

    Alan

  5. keesiemeijer
    moderator
    Posted 1 year ago #

    Just to be clear, did you already move the posts from your old site to the current one?

  6. HomerUser
    Member
    Posted 1 year ago #

    Hi Yes l moved the complete blog from

    http://wwwaswcrafting.blogspot.co.uk/

    to

    http://www.aswcrafting.com/

    l used a plug in that moved the whole blog from 'googles site' to my new home.
    When l transferred the blog over it placed it in one page that's called Home.
    I want to now move some of those older posts to a new page withing my WordPress site.

    If you look at the aswcrafting.com site you will see l have made a page/section ready to move them over to this new page/section.

    Hope this help please ask any questions if you need more information.

    Many thanks for your help in this matter

  7. keesiemeijer
    moderator
    Posted 1 year ago #

    You want All the posts before the "A FRIEND IS LIKE AN OWL" post appear on the home page? And the "A FRIEND IS LIKE AN OWL" post and the posts after that on your "Older Postings" page?

    If so, try putting this in your theme's functions.php file to exclude the older posts from your home page:

    add_action( 'pre_get_posts', 'my_post_queries' );
    function my_post_queries( $query ) {
    	// not an admin page and it is the main query
    	if (!is_admin() && $query->is_main_query()){
    
    		// query the home page
    		if(is_home()){
    			add_filter('posts_where', 'filter_where');
    		}
    	}
    }
    
    function filter_where($where = '') {
    	$where .= " AND post_date > '2012-07-27'";
    	return $where;
    }

    Still working on the "Older Postings" page ...

    btw:
    consider creating a child theme instead of editing Twenty Ten directly - if you upgrade the theme all your modifications will be lost.

Topic Closed

This topic has been closed to new replies.

About this Topic