Jump to content

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

Edited by neodjandre
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.

Edited by Pikachu2000
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.