wordpress

Wordpress "500 Internal Server Error" when posting comments

Hi all, Wordpress is acting crazy when posting comments, showing a "500 Internal Server Error" every time a comment is submitted trough the comment form. The comment is inserted successfully but you get the error screen, this does not happen when submitting an empty form, then you get the error page from wordpress stating that you have...

How to make Wordpress function example for html header

How to create a simple Wordpress function in functions.php I want to make a function something like custom_header() and the code in the function is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attrib...

Which file has a definition of add_post_meta function?

Hello, Does anyone know which file I can find the definition of add_post_meta function in wordpress 3.0? Thanks! ...

WordPress Doesn't Work On Certain Pages Anymore

We were having some issues with inline javascript, so we decided it would be wise to modify the add-filters file by commenting out the line associated with wpautop and the_content. After uncommenting the line, it seems that some of the pages don't want to revert to having paragraphs (generally the index pages). Any ideas as to how this...

WordPress Plugin Question

Hi all, Is it possible to use plugins on my blog for WordPress.com? There are some very nice tutorials on how to do this if I have WordPress installed on my own server, but I am using wordpress.com. Does anyone know if they allow this? It seems like the expected "Plugin" category on my dashboard is missing. Many thanks, brett ...

wordpress test site goes to main site url...how to solve?

For example I have a live WP site http://wpsite.com I wanted to make a live mirror copy of http://wpsite.com at http://wpsite.com/test/ so i copied all data of public_html/ folder to public_html/test/ then i checked http://wpsite.com/test/ but everything is going to http://wpsite.com/ is there any .htaccess problem? This is .htacces...

Wordpress Redirecting me to login

Each time I try to filter a Post in Wordpress, it sends me to the login screen with a long string for the URL: ../wp-login.php?redirect_to=http%3A%2F%2F192.168.0.128%2Fblog%2F%2F%2Fwp-admin%2Fedit.php%3Fs%26mode%3Dlist%26action%3D-1%26m%3D0%26cat%3D0%26action2%3D-1 The site is set up on a Virtual server IIS server, with LAMP underneath...

Link posts in wordpress

Hi all, I'm trying to link posts in wordpress. Let me elaborate. In wordpress, you can set how many posts you want to show on a page. If, for example, you set that number to 1, and you have 10 posts, then you'll have 10 pages. I have the following code that WORKS on the index.php (main posts page). It shows a link to older posts. Below...

trying to put a php variable into the code for the "twitter for wordpress" plugin

Hi I am using the 'twitter for wordpress' plugin to display the last tweet in wordpress. it works fine but needs the username for the twitter account harcoded into the line of code: <?php twitter_messages('myaccount', 1, false, false, false, true, true, false); ?> What im trying to do is replace 'myaccount' with a variable ...

Wordpress 3.0 MultiBlog Theming

I was wondering if Wordpress 3.0 will allow me separate instances of the same theme to customize to my liking? Then I could use these two themes in two separate blogs in that same multiuser Wordpress 3.0 instance? Is this possible? Like could I completely customize the TwentyTen theme and then install another TwentyTen theme under a dif...

Wordpress - Disqus error with custom page template

Hi, I created a custom page template to display a filterable portfolio in Wordpress. However, on that custom page I am getting an error code - // <![CDATA[ (function() { document.write('<script charset="utf-8" type="text/javascript" src="http://thinquetanque.disqus.com/get_num_replies_from_wpid.js?v=2.2&amp;amp;t=span&amp;amp;wpid0=14&...

Wordpress as cms for different page content per country.

Which plugin to use? I use wordpress as a CMS and was wondering which plugin I could use make 1 page with dynamic content for different selected country/per domain/URL? (I would like to have many versions of the same site where, some pages have common page content while other pages have different page content) ...

Wordpress Comments Pagination

I want to paginate comments section of my wordpress blog using ajax. How would i do that. I want to use ajax because if i use other paginate plug-in's the whole page will be refreshed which is not what i needed Anyone with an idea ? Thanks and Regards ...

Ajax not working on Nginx / Wordpress

ahoy, i'm running wordpress 3x on nginx and all my ajax calls are broken. the exactly same wordpress runs fine on Apache. i've fixed somehow an ajax call to work with nginx by removing 'index.php' from all jquery.post() calls, but i couldn't fix the other calls in the same way. basically the changes were: for nginx the line: jQuery.p...

Wordpress SQL attack...Unknown Javascript found on each post

My site is redirecting to some malware induced site and after looking into my SQL database, I can see this js code in every single one of posts - (Chrome throws a warning if you try and open this url) . It seems like I am not the only one http://wordpress.org/support/topic/was-my-site-just-hacked-found-random-script-in-all-pagesposts Ki...

Wordpress widget/plugin - content based on text of post(s)/page(s) visible?

I'm new to the Wordpress plugin and widget APIs, but I'm sure this is possible. I'd like to make a plugin or widget that would create links to other posts or external sites based on certain keywords/tags in the content of the given page/post. Is this possible? For example, if a term is in all-caps, link to the Wiktionary definition; i...

Wordpress body_class(). How to set the right class for my index?

Hi all, I customised my theme where the index.php works as a "page". But with <body <?php body_class(); ?>> it's create the class "blog", which I don't want to. I want to change the class name to "index" or "home. How can I do this? Thanks. ...

Wordpress > Create category as child of "uncategorized" (catid=1)

I've got a script in my functions.php file that checks for the existence of several categories that are required by my theme, and if they are not present, it creates them... if(!get_cat_ID('my-category')){wp_create_category('my-category');} I need to modify this script in two ways... First, I need to create the category so that its p...

.htaccess : languages redirection

Hi everyone, I'm trying to redirect visitors of my blog to either the french or the english version. So I made this .htaccess : <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / #--------------------- # Language Redirection #--------------------- # Checking if the redirection didn't occur yet # Checking that the url doesn't begin...

Run code block in functions.php ONLY when theme is activated. Use register_activation_hook?

I have a specific bit of setup code for my theme that I only want to process when the theme is first activated. I was under the impression that I could use register_activation_hook for this, but it does not appear to be working. Example... In my functions.php file, I want the doThemeSetup() function to run only upon theme activation an...