Incude comments in search

Whether you put custom code in your theme’s functions.php or in a plugin, you’re still using custom code. So I’m going to ignore your “without a plugin” requirement and instead suggest these two plugins: Search Everything Relevanssi There is absolutely no reason to use custom functionality in functions.php rather than a plugin. When you’re asking … Read more

Creating your own options-general.php page

You don’t. You would have to keep your new page in sync with the core file each time WordPress is updated … that would not be very pragmatic. Hook into the do_settings_sections(‘general’); with register_setting() and add your code here. There is a third parameter for register_setting(): you can register a callback function here which used … Read more

“Warning: call_user_func_array() [function.call-user-func-array]:” above comments form [closed]

Given the error message: Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘tl_spam_free_wordpress_comments_form’ was given in /home/euanmitc/public_html/wp-includes/plugin.php on line 403 The error is being generated by whatever Plugin defines this function: tl_spam_free_wordpress_comments_form() …which appears to be Spam Free WordPress Comments. This bit: First argument is expected to be a valid callback … Read more

Page/2 posts don’t load and give 404

Never use query_posts() :). See this answer for more detailed explanation of why not, and the alternatives. In this instance, remove your query_posts() and instead in a plug-in, (or functions php). add_action(‘pre_get_posts’,’wpse57229_change_query_for_main_page’); function wpse57229_change_query_for_main_page( $query ){ if( $query->is_main_query() && is_front_page() ){ $query->set(‘post_type’,array(‘etude’,’new’)); } }

Where do hackers usually run their hacking script? [closed]

They run it on your server, just like any other script runs (including WordPress). In the log you provided, it looks like the hacker knew your password. Perhaps you are using the same password on other sites, and he somehow gained access to one of them? Always set different and complex passwords; combine a large … Read more

All navigation fails and leads me to homepage

Some more information is welcome. maybe your .htaccess file got messed up? Delete it and, recreate in settings permalinks. deleting .htaccess. use your prefered ftp client and go into your root folder. find a file called .htaccess and delete it. If you can not seem to locate it make sure your settings show ‘hidden’ files. … Read more

WordPress jQuery is not defined error

Your primary problem is that you are de-registering core jQuery. Don’t do that. Ever. Period. If you get rid of that, your other scripts will work properly. Just do this: function wpse62373_register_js() { if ( ! is_admin() ) { wp_enqueue_script(‘quicksand’, get_template_directory_uri() . ‘/js/quicksand.js’, array( ‘jquery’ ) ); wp_enqueue_script(‘easing’, get_template_directory_uri() . ‘/js/easing.js’, array( ‘jquery’ ) ); … Read more

How do I edit a links published date?

For one thing, Links are being removed altogether with WordPress (either in 3.5 or the next release). Second, there is no concept of a “published date for these kind of links. There’s no place in the database for it at all. There is a “date updated,” but that’s just to record when you last made … Read more