Parse error: syntax error, unexpected '}' in D:\www\www394\sdgv2017\wp-content\t

  • Author
    Posts
  • #46530

    i can not find what’s wrong here, the site works but accessing the dashboard or tablepress brings up the parse error.
    thank you for any help
    jorge
    that is in my child functions.php:

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    function my_theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }

    /* show only posts from category id 7 i.e. leistungssport on homepage */
    function mts_include_category_homepage($query ) {
    if ( $query->is_home() && $query->is_main_query() ) {
    $query->set( ‘cat’, ‘7’ );
    }
    }
    add_action( ‘pre_get_posts’, ‘mts_include_category_homepage’ );
    ?>

    Website: discgolfviva.ch/sdgv2017

    #47097
    Zed
    Cryout Creations mastermind

    Could you post the error message as well?
    Having it in the title stripped out the most important part of the error.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Parse error: syntax error, unexpected '}' in D:\www\www394\sdgv2017\wp-content\t’ is closed to new replies.