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
Thanks, Kevin.Wiles
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 |
Recent Posts AI is the future of technology? 2 comments Best Platform for Azure Certified Professionals? ![]() 2005 - 2022 the rise and fall of mobile traffic - and why 4 comments Office security 1 comments Scheduling meetings - Acuity nails it! Which Freelance Website is best for Pick the Project? 5 comments Wordpress alternative 6 comments ![]() Email checker - see if your email has been compromised 14 comments Anyone used Wix? 24 comments Business Websites... 3 comments I Dont Need a Website...! Massachusetts Institute Of Technology Anyone used EMERGE App? 1 comments ![]() Krack Attacks - WiFi Issue - The realistic risk to you 7 comments ![]() Opening Outlook attachments prompt for a password 4 comments |