Avatar of Glenn Abelson
Glenn AbelsonFlag for United States of America

asked on 

Show title of a page other than posts on another page

I know that the code below will show the title of one or more blog posts on another webpage.
If I also have a page called Events, is there a way to show those titles instead?

// Include Wordpress
define('WP_USE_THEMES', false);
require('./tbsblog/wp-blog-header.php');
query_posts('showposts=1'); ?>
        <?php while (have_posts()): the_post(); ?>
       
        &nbsp;
        <?php  the_title() ; ?>
       
        <?php endwhile; ?>
WordPress

Avatar of undefined
Last Comment
gwkg
SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of gwkg
gwkg
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
WordPress
WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.

11K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo