Forums

[resolved] Default Home Page (3 posts)

  1. bjdavids649
    Member
    Posted 4 months ago #

    Is there a way to specify the default homepage to a page that is the menu that is not a "real" page? For example, the page in the menu goes to a specific page of posts in a category.

    I would like the default homepage for http://momslikeus.org/ to be http://momslikeus.org/category/moms-like-us-tv-shows/.

    Thanks,
    Barb

  2. jonradio
    Member
    Posted 4 months ago #

    The only way that I'm aware of, to do this, is create a Page and write the php to do what you want. Most people would write their own Theme template to do that, but I prefer using the Shortcode Exec PHP plugin at http://wordpress.org/extend/plugins/shortcode-exec-php/

    Either way, you would be coding

    $posts = get_posts( array(
    	'category_name' => 'activities',
    	'posts_per_page' => -1,
    	'orderby' => 'post_date',
    	'order' => 'DESC'
    	)
    );

    to get the posts (in this example, from category=activities) and then go through a foreach loop to format each post title as a link. That code might begin:

    foreach ( $posts as $post ) {
    	setup_postdata($post);
  3. bbproductions
    Member
    Posted 4 months ago #

    If you use the side menu in the admin panel, go to settings > reading. The first option sets front page display

Reply

You must log in to post.

About this Topic

Tags

No tags yet.