benowats
Forum Replies Created
-
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
BenForum: Fixing WordPress
In reply to: URL Problemthank you esmi… It works… “AddThis” plugin cause that weird url.
Forum: Themes and Templates
In reply to: How to list a post inside the page?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
- “><?php the_title(); ?>
$myposts = get_posts(‘numberposts=-1&offset=$debut’);
foreach($myposts as $post) :
?><?php endforeach; ?>
<?php endwhile; ?>
Hope this help to others! 🙂