I am using twentytwelve theme and wants to show only title on home page. This is what I have in index.php loop, I am not able to understand what should I edit to get only titles
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php twentytwelve_content_nav( 'nav-below' ); ?>
<?php else : ?>
EDIT – I am able to get the title printed using get_title();but this only prints title and no links to the post.
replace this:
with this:
Use this theme:
Theme Name: Twenty Twelve
Theme URI: https://wordpress.org/themes/twentytwelve/
Author: the WordPress team
Install this plugin:
Prime Strategy Page Navi (https://wordpress.org/plugins/prime-strategy-page-navi/) —> for page navigation
Auto Numbering Post (https://wordpress.org/plugins/auto-numbering-post/) —> for add numbering front title
1. Open file: /wp-content/themes/twentytwelve/index.php
Find this code (line 25):
Replace with this code:
Save file and close.
2. Open file: /wp-content/themes/twentytwelve/style.css
In bottom, paste this code:
Save file and close.
3. This Result:
Be happy theme for list or directory article.