Jump to content

Help With Code Syntax


neodjandre

Recommended Posts

//change excerpt
function custom_excerpt_more($more)
{
return ' …<br />' . '<a href="'. get_permalink($post->ID) . '">' . 'Continue Reading: '. get_the_title() . '</a>';
}

add_filter('excerpt_more', 'custom_excerpt_more');

 

newbie alert...

 

I need to change the above syntax to replace . 'Continue Reading: '. get_the_title() with an image..

 

I am a complete newb with php but i am good with html..

 

thanks

Andy

Link to comment
https://forums.phpfreaks.com/topic/270574-help-with-code-syntax/
Share on other sites

i get confused with the dots "." and the " ' " in the above syntax... worst thing is that when i upload the file to my server, the whole site crashes and i can't play around with trial and error...

 

That's why you shouldn't introduce untested code to a production environment. Set up a local testing server, and use an editor that has decent syntax highlighting.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.