wordpress

WordPress installation duplicating

I have a domain: example.com. There are various WP installations for different languages in subdirectories, e.g. /en/, /fr/, /es/. I have used the English language (/en/) folder and the _EN database as templates for the new foreign language installations and their databases. I changed the usual suspects in the new databases. This meth...

.htaccess multiple authorization for sub-child directories

I'm looking to edit my .htaccess file to control AuthTypeBasic for it's own directory and child directories differently. I currently have password protection (AuthType Basic) set up on the a folder and would like to set up some of the children directories to be exempt from this password protection and other child directories to have uni...

Image overlay showing IDs and not text

In the post editor when you click on an image that has already been inserted an overlay pops up allowing you to edit the image. This overlay is displaying things like {#cancel} instead of the word Cancel. All text on this overlay has been changed in a similar way. Screenshot: http://awesomescreenshot.com/0151v82eb I have disabled all ...

Choosing the main category for a post in Wordpress

hi folks, i have a post in WP, lets call it Cheesecake. And i have this post set to 3 categories: in "Coffee" in "Cake" and in "Desserts". And now i want the main category for Cheesecake to be "Cake" so the URL would be www.mywordpress.com/category/cake/cheesecake The problem is: i created the category "Coffee" first and so WP takes t...

TINY MCE not saving inline styles properly

I have a wordpress plugin that has a textarea using tinyMCE tinyMCE.init({ mode : 'textareas', theme : 'advanced', theme_advanced_buttons1 : 'forecolor,seperator,bold,italic', theme_advanced_buttons2 : '', theme_advanced_buttons3 : '', elements : "editorContent", width : "365", height...

Wordpress: Display Total Number of Posts For Current Month, Week and Day?

I found a way to display the total number of posts made but I need to be able to display the total amount of posts for the current. Day Week Month Anyone got some code please? Thanks ...

Wordpress POD CMS Plugin error

Undefined property: stdClass::$tbl_row_id in /public_html/wp-content/plugins/pods/classes/PodAPI.php on line 1073 I keep gettin this error after clicking to add a new record for a POD I created. Nothing makes sense. I deleted the whole database and tried again but keep gettin the same error. Any ideas? ...

Single Pages loading with index.php instead of single.php in wordpress

My single pages and posts are not being loaded by single.php, instead they are being loaded in index.php I'm not able to figure out the reason for this. My is a template which I have made myself and the loop in index.php is almost the same in the default theme of wordpress 3. This is creating lots of troubles for me. What could be the ...

Importing to wordpress

I have a blogging service and would like my users to be able to export their blog from my site to Wordpress. Can someone guide me in creating OPML/XML format or any other way to allow them to import I am using Ruby on Rails 2.3.2. ...

Google custom search results page don't show any results

Hi, everyone. I'm trying to use the google custom search in a wordpress website (but without any plugin). I've used the code google provided (the search box code and the search results page code) and the results page it's returning empty... However the auto-complete it's working: This is the page that should show the results: http:...

HTML output from PHP function

I have a function whos purpose is to return some HTML ($offer_html) to display on my page. However, I´m seeing some strange things. Below you see a div is added first to $offer_html (DIV is closing at the end). $offer_html = '<div class="box middle offer alignleft">'; $offer_html .= '<p class="detail alignleft">' . $volum . '</p>'; $o...

Can I drop one of these indexes in Wordpress?

Hi guys, i'm currently exceeding the maximum server queries per hour with my blog on my host, and when that happens they shut my account down, rendering it useless. I keep exceeding the maximum amount of queries which is 75,000 but I don't think I should be considering the amount of visitors I have at the moment, plus I'm using Super C...

How to call WP Theme Templates from WP Plugin?

Ok, you know when you're editing a page in Wordpress? You can change the page template under Page Attributes. How can I call a list of the current theme's page templates? I need that to use in my plugin. ...

Wordpress jQuery filterable slideshow.

I have been searching for the past two weeks but haven't been unable to come across what i'm looking to do in WordPress. Explanation: In WordPress, I am looking to do something similar to this: http://stackoverflow.com/questions/1876767/how-can-i-build-a-filterable-jquery-slider-for-a-portfolio - but instead of having numbers, have thum...

.htaccess code to redirect old blog urls to new blog urls on a new domain

I'm trying to redirect an old wordpress blog to a new posterous blog using an htaccess file and I am using the code below; the problem is that I can't get the old individual blog posts to redirect to the new ones - they have the same name structure on the new domain name (eg: olddomain.com/post-1 is now newdomain.com/post-1), but if I ty...

What is the correct way to setup "Pretty" permalinks in Wordpress 3.0

Hi I'm been trying to figure this one out for ages but I can't seem to do it. I have an ubuntu 10.04 server with wordpress installed on it. I am trying to make my wordpress use "Pretty" permalinks however every time I try it doesn't seem to work. This is my apache config: <VirtualHost *:80> ServerAdmin webmaster@localhost ...

Mobile website - how to switch to desktop version

I have a WordPress website (abetterworldbydesign.com) which has user-agent detection to redirect mobile websites to a subdirectory. It is using the plugin: WPtap Mobile Detector I want to include a toggle link to switch between the mobile and desktop version. How can I make the site remember that a mobile user has switched to the deskto...

Get this code I made to also do month/day/week post count? Wordpress

I finally got some code made for to output this years total published posts. get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish' AND `post_date` > '" . date("Y") . "-01-01 00:00:00'"); if (0 < $numposts) $numposts = number_format($numposts); ?> I'm looking at the WP time paramters to try and make it also do day the...

Custom PHP code won't show up in Wordpress theme?

This has me absolute stumped! I have a small snippet of PHP code, <?php include('/includes/stuff.php'); ?>. All it does is output an image. If I put this in the WP themes header.php or index.php files, it will never show up. Here is the actual code in my the themes index.php file: <img src="<?php bloginfo('stylesheet_directory');?>/im...

Wordpress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error.

We have just installed WordPress 3.0.1 and everything worked fine. However, as soon as we started to install the multisite functionality by following this tutorial, things started to go wrong. At the end of step 5, the tutorial has you update your wp-config.php file and .htaccess file. Once we made the reccommended changes to these files...