• Hi

    I’m trying to add a blog page to an existing website. I’ve added the page and set it up as the landing page for blog posts. However, when I then create a post I get the following:

    Fatal error: Call to undefined function martinsewell_posted_on() in /var/www/vhosts/msbc.uk.com/httpdocs/site/wp-content/themes/martinsewell/loop-single.php on line 29

    I’ve looked on functions.php and found the following around line 29:

    *
    * add_action( 'after_setup_theme', 'my_child_theme_setup' );
    * function my_child_theme_setup() {
    * // We are providing our own filter for excerpt_length (or using the unfiltered value)
    * remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
    * ...
    * }
    *

    Can someone suggest what is wrong, please?

    Thanks

    Phil

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    – problem seems to be with your theme “martinsewell”.
    – Where did you download it from?
    – To rule out any theme-specific issue, try switching to the unedited default theme for a moment using the WP dashboard. If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides. Alternately, you can remove other themes except the default theme. That will force your site to use it.

    Thread Starter philsy

    (@philsy)

    Thanks for the reply.

    It’s a site that someone else built and they seem to have created the martinsewell theme by modifying the Twenty Ten theme.

    I have switched to another theme and it resolved the problem but I have to go back to the custom one, so what next?

    Thanks

    Phil

    Thread Starter philsy

    (@philsy)

    I’ve just looked at the functions.php file is exactly the same with both themes, if that’s any help.

    Moderator t-p

    (@t-p)

    My suggestion is to contact the theme’s developer since your theme does not seem to be from www.remarpro.com

    Thread Starter philsy

    (@philsy)

    Thanks but I don’t have their contact details.

    Phil

    Moderator t-p

    (@t-p)

    I have switched to another theme and it resolved the problem

    This suggest problem with your child theme.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unable to add blog posts’ is closed to new replies.