Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wordpress posts on different pages

Featured Replies

is their a way to set up which page a post goes to, like if i have posts going to the main page, but also want to be able to make posts to a blog And posts go to another page?

 

<?php $the_query = new WP_Query( 'showposts=3' ); ?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></strong></li>
<li><a href="<?php the_permalink() ?>"><?php the_time( get_option( 'date_format' ) ) ?></a></li>
<li><?php the_excerpt(__('(more…)')); ?></li>
<li><a href="<?php the_permalink() ?>">Read more</a></li>
<?php endwhile;?>

 

That will display your 3 latest posts, post title, post date, content and then a read more.

  • Author

It's not that I'm trying to do, what I'm trying to do is, have three separate pages that I can make posts too, like post on the home page, then post different content on a blog page, and then post different content again on a totally different page

You could set up categories for your posts, and only display posts of a certain category on certain pages.

  • Author

You could set up categories for your posts, and only display posts of a certain category on certain pages.

 

How would this be done, and would they still show up on the main page or would it only be the one with the right category

How would this be done, and would they still show up on the main page or would it only be the one with the right category

 

Basically, put this in front of your loop where CATNAME is the name of your category. You then just need to create different template pages for each category i.e. blog, news, events.

<?php query_posts('category_name=CATNAME&showposts=10'); ?>

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.