wordpress

Create a select dropdown from file tree of images & sub directories using PHP

I'm creating a wordpress meta box and I need to scan a directory of subdirectories containing images within my template and add these to a select dropdown so I can use the filename in my template. The images are currently arranged in the folder like this: Parent Folder |_ Secondary Folder    |_ Image.png    |_ Image.jpg    |_ Image.gi...

Changing the default language presented by GeSHi through a wordpress plugin

I am using WP-CodeBox to get syntax higlight effect on my WordPress blog. I wish to have the plugin automatically always show the X language, whenever I use < pre > some code < / pre > Any idea how to change the PHP code for that? (I am willing for it to be hard coded to the plugin files) ...

Wordpress Plugin Development: send query string parameters

I'm developing my first Wordpress plugin, and I have one line which deletes an entry. I have to use query string parameters to pass in the action and the object id. My code is: $pageText .= '<td><a href="'.$_SERVER['REQUEST_URI'].'?useraction=delete&domainid='.$file.'">Delete</a></td></tr>'; This creates a 'delete' link and populates ...

Wordpress, change language_attributes to return dir=rtl

In wordpress, inside the header.php file of a theme, there is the next line: <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> By default, it(language_attributes) returns dir=ltr, and every online guide i read tried to show a way to hange the css file. it's not enough and not semantic. i need to change the h...

WordPress: plugins don't load (only) on homepage after update

Hi there, After several plugins got updated yesterday I saw in the source code that actually no plugin is loaded(1) on the frontpage anymore. On all the other pages everything works just fine. The most obvious one is the menubar (wp-menubar-plugin), and for now I made an exception for the homepage(2) loading a hard coded copy of the me...

wordpress sharding: which multi-db plugin to use?

I've got a wordpress multisite installation that's hosting enough blogs I need to shard the database. I see there are three plugins available to spread wordpress across multiple databases: http://wordpress.org/extend/plugins/hyperdb/ http://premium.wpmudev.org/project/multi-db http://wordpress.org/extend/plugins/shardb/ I'm trying t...

Wordpress: is child of category function

I I am looking for a function that merely returns true or false. The function would check if the category archive being queried is a child of a particular parent category. The function would look something like this (similar to the is_category() function): if(is_child_of_category('3')){ //do something } if(is_child_of_category('4')){ //...

Catch all Wordpress exceptions?

Hi guys, it is possible to create a global exception handler for Wordpress so that I log all exceptions in a file or db so that I can analyze them later on ? PS I am a WP noob ...

Wordpress - Missing redirect reponse when connected to network or VPN

Hello, I'm running into an issue when logging into or generally when submitting something on our WP blog. The issue seems to be whenever i'm logged into out network either when in our office or connected over a remote VPN. After tirelessly trying to figure out the issue i'm now SO close but need a final bit of help to resolve this. I...

Best CMS to use on Windows Azure

Hi Guys, I've just started a new software consultancy business and I'm currently putting together designs for my website. We will be at a stage very soon to start converting these into a template for a CMS. I have used http://n2cms.com before, but my designer has built many sites using WordPress, we recently built a site which worked v...

Wordpress: Hide parent category posts

How to hide, sub categories posts on parent category? Like: about us ---- under1 ---- under2 if select about us, posts from under1, under2 are showed. How to fix this? ...

Funny Character Appearing in my WordPress Pages Content

Hi, Can people assist as to why I am getting the following special character � in my WordPress content pages. Not sure how it got in there. Any help would be great. Thanks. ...

Wordpress 3.01 error Permalinks error

If i enable Permalinks in wordpress, i get following error ,when i click on the post 403 Forbidden You don't have permission to access /news/2010/10/test/ on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. but when permalinks is default it works fine. ...

Separate Post and Pages from WordPress Search Results

Hi! I am looking for a way to present search results in my custom wordpress theme. I was hoping being able to present the results like this: Displaying 4 search results for "test" Pages testpage 1 testpage 2 Posts testpost 1 testpost 2 I wrote a function is_type_page that I can use inside the loop (2 loops), but this brea...

Remove top level parent from permalink structure on Wordpress 3.0.1

I'm working with wordpress permalinks at the moment. The site has 3 hidden areas, managed simply by a top level page. As this page is simply structural, I don't want it to appear in the permalink: -Section 1 -- Page 1 -- Page 2 - Section 2 -- Page 1 -- Page 2 - Section 3 -- Page 1 -- Page 2 instead of /section-1/page-1 etc I'd like /pa...

Custom Fonts - wordpress

In wordpress, when you make a blog entry, it displays the date year etc of that blog. Is there a php/jquery script that can take any kind of title and render an image of that? In other words if the entry data is "20th july 2010" how would I get it to render each of the three items in a different font/image. ...

when do i use wordpress

Well I have a lot of confusions about wordpress. And I unfortunately could not find a satisfactory answer to my questions. So expecting a detailed answer. To what extent we can customize a wordpress website? for what kind of projects we should use wordpress. Can we create a database oriented website in wordpress? For example I want to ...

How to hide commpletely comments in a wordpress page

i have closed comments in a page still the below lines are displayed in the page .How can i disable these lines . someone please help me ! Posted on October 12, 2010 by sankar Comments Off | Edit Comments are closed. ...

Wordpress working locally then uploading

I have a couple of sites that I will be developing locally then when done will upload to respective hosts. I usually test out in Mamp, but this time will complete the whole site. I have had to move Wordpress sites to different directories before, which was a tad cumbersome. Are there steps I can take during development that would help...

WordPress Post Thumbnail

I'm using the post thumbnail feature to show portfolio work, so for example <?php the_post_thumnail(); ?> the problem is I want to show a particular width of image only, which is 640 but because my pieces are website they have varying heights. I'm using this code to create the images: add_image_size( '640', 480 ,true ); but it's specify...