Fatal error: Cannot redeclare comment_theme()

Your comments.php is included multiple times for some reason. Look for comments_template() – maybe it is called too early. Each time that happens, PHP tries to create the function comment_theme() again. This cannot work, function names must be unique. Move the function declaration to the functions.php. So everything including … <?php function comment_theme($comment, $args, $depth) … Read more

Replacing WordPress Icons (menu,icons32, etc)?

The CSS is in wp-admin/css/colors-classic.css and wp-admin/css/colors-fresh.css and the min versions of those, including the icons32-2x.png ones. I can see them when I grep the directory. For example, wp-admin/css/colors-classic.css:2162. The images themselves are in wp-admin/images, as you can see from the style rules, but you should not be hacking/replacing those. They will be overwritten when … Read more

making php value numeric

Your question is more about SQL than WordPress. If you want to sort your term names as numbers, you can in general try SELECT * FROM wp_terms ORDER BY name+0 ASC or SELECT * FROM wp_terms ORDER BY name*1 ASC or use CAST: SELECT * FROM wp_terms ORDER BY CAST(name AS SIGNED) ASC where you … Read more

How to call custom function outside from the admin page?

Out of context, it is hard to say anything definitive. There is a lot of information missing. If you saved an Array to the $wpdb->options table (add_option or update_option) then get_option will return an Array. If you saved a string, it will return a string. If you want a string then you are saving the … Read more

How do I custom code the start page?

It sounds like you just want a custom index page for your WordPress site. In that case, create a new page in the site (/wp-admin/post-new.php?post_type=page). Then create a home page template file and assign it to the newly created page (the custom template assignment is in the Page Attributes widget on the edit page). Finally, … Read more

using images in next/previous_post_link [closed]

The path of image is incorrect. Change #blog .pagination span.left-arrow { background: url(‘arrow_left.png’) no-repeat; } #blog .pagination span.right-arrow { background: url(‘arrow_right.png’) no-repeat; } to #blog .pagination span.left-arrow { background: url(‘img/arrow_left.png’) no-repeat; } #blog .pagination span.right-arrow { background: url(‘img/arrow_right.png’) no-repeat; }

random reason on refresh

You say that you are… … wanting to add a random reason (quote) as to why they should join which will change after every reload of the page And you seem to trying to do this by placing Javascript in a text widget. I assume that is what you mean by the ‘”text” in the … Read more