Wordpress Expert

By : Forum Member
Published 2nd September 2011 |
Read latest comment - 2nd September 2011

I need some wordpress help asap please

Thanks,
Kevin.Wiles
Comments
I need some wordpress help asap please

Let it out, mate.

Thanks,
fourth-monkey

I have this page CALGAVIN

As you can see this shows the latest blog posts now I want it to show the title before the welcome to

The online code I can see i the backend is

<?php get_template_part( 'loop', 'index' ); ?>

Thanks,
Kevin.Wiles

I have this page TEST

As you can see this shows the latest blog posts now I want it to show the title before the welcome to

The online code I can see i the backend is

<?php get_template_part( 'loop', 'index' ); ?>

In your source page, there is <h2> tag, which is empty, where the title should be. Find the wp-content/themes/YOURTHEME/loop.php file and see what's inside the <h2></h2>. It should contain <?php the_title(); ?> in there somehow to show the title. See if that helps.

Thanks,
fourth-monkey

Within the loop it has this code

$p_text = '<h2>' . $post->title . '</h2><p>' . get_the_excerpt() . '</p>';

Thanks,
Kevin.Wiles

what version of wordpress you are using?

Thanks,
fourth-monkey

3.2

I only want these chanegs to happen to one page though and not all the pages

Thanks,
Kevin.Wiles

you are already in php, so <?php ?> not needed. try this
$p_text = '<h2>' . the_title() . '</h2><p>' . get_the_excerpt() . '</p>';
OR
$p_text = '<h2>' . single_post_title() . '</h2><p>' . get_the_excerpt() . '</p>';

Thanks,
fourth-monkey

That works but its putting it otuside the content box

TEST

"IM A TEST" Is the title

Thanks,
Kevin.Wiles

That works but its putting it otuside the content box

TEST

"IM A TEST" Is the title

That is weird. It should be in the h2 tag. Can you post/PM me some code from that file so I will have a look.

Thanks,
fourth-monkey

This Thread is now closed for comments