Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter benowats

    (@benowats)

    Hey Guys!

    I have found the problem in functions.php:

    //Place All Your Custom Function Below This Line
    //var_dump($_SERVER);
    //die();
    wp_dequeue_script( ‘theme-scripts’ );
    wp_enqueue_script(‘theme-scripts’, site_url().’/wp-content/themes/yellowboar/includes/js/theme-scripts.js’, array(‘jquery’), ‘3.1’);
    //disable rss feed
    function fb_disable_feed() {
    wp_die( __(‘No feed available,please visit our <a href=”‘.
    get_bloginfo(‘url’) .'”>homepage!’) );
    }

    When I remove that code the Dashboard Drop Down Menu and Widgets drag & drop are working.

    What’s that code mean?
    Should I permanently remove that code?
    If I remove that code, is their parts of the site would be affected?

    Help please!!!

    Thanks
    Ben

    Forum: Fixing WordPress
    In reply to: URL Problem
    Thread Starter benowats

    (@benowats)

    thank you esmi… It works… “AddThis” plugin cause that weird url.

    Thread Starter benowats

    (@benowats)

    Fix done,

    Got this code :
    <?php
    /*
    Template Name: All posts
    */
    ?>

    <?php
    $debut = 0; //The first article to be displayed
    ?>
    <?php while(have_posts()) : the_post(); ?>
    <h2><?php the_title(); ?></h2>

      <?php
      $myposts = get_posts(‘numberposts=-1&offset=$debut’);
      foreach($myposts as $post) :
      ?>

    • “><?php the_title(); ?>
    • <?php endforeach; ?>

    <?php endwhile; ?>

    Hope this help to others! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)