wordpress

Installing Wordpress in another location to my wordpress customisations

I'd like to install wordpress in another directory to the actual DocumentRoot so that I can keep it under version control but at the same time customise my wordpress site. So I have a directory layout something like this branches/ tags/ trunk/ index.php wp-content/ < this is where I will have my customisations vendors/ wordpress/...

WordPress 3 - functions.php Queries

Hi, I'm new to WordPress theming and have downloaded the Starker's WP theme from starkers My question is, as this is an updated theme based on new twentyten for WordPress 3.0, do I need all the code in the functions.php file as it all seems to make reference to default twentyten theme? I'm am doing a CMS and was wondering if there is ...

Wordpress list pages with children

Hi guys this looks doable but I cant quite figure it out. I have a lists of pages in wordpress Page1 Page2 Page3 Page4 when you are on a page need to display it's children but only it's children and not the children of the other pages (which all have children) Page1 Page2 -child1 -child2 -child3 --grandchild1 ...

Wordpress: custom the_content filter is removing other filters, ie: wpautop

This is my first time playing with filters, so forgive me if this seems basic. I have done quiet a bit of googling and can't find anything related to my problem, from everything I have been able to find this should be working without an issue. It's my understanding that filters added manually run concurrent with any other filters wordp...

Rewrite Rules for Subdirectories in Wordpress 3 Multiuser with nginx?

My Wordpress 3 multiuser has been enabled, but I don't know how to rewrite the following .htaccess rules for nginx: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-...

Wordpress Custom page Adding Comments Breaks jQuery?

I made a custom page that is based off archives that shows the post excerpt then a button which on click slides down to show whole post. It works great but I try to include the comments template in there and then jQuery breaks, wont slide. If I firebug in and remove the display:none then it shows and everything, even comments, are in th...

WordPress vs ExpressionEngine: is EE worth the price?

Hello, I'm very new to coding (having only taken Web Development 101 at university aka 'OMG CSS u guise'), and I'm just beginning to realize that knowing HTML/CSS alone isn't good enough. I've decided that it would be best for me to learn the hell out of one CMS, because I'm not keen on learning a full programming language. Mainly I jus...

jQuery UI tabs not working with Wordpress

This theme I found seems to be using jQuery UI tabs but they're not working... header.php has: <link type="text/css" href="<?php bloginfo('template_url'); ?>/css/ui-lightness/jquery-ui-1.8.4.custom.css" rel="stylesheet" /> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-ui-1.8.4.custom.min.js"></scrip...

Adding HTML Pages into WordPress

Hi, Within my website that I am converting over into a WordPress CMS theme, there are 7 menu options that go to individual html pages. My question is, what is the best way to get these 7 html pages into my WordPress CMS theme, i.e. is there a backend means or do I directly add these individual pages as the WordPress Admin? I've curren...

How do I use new add_editor_style() function in wordPress?

I found this article: http://www.deluxeblogtips.com/2010/05/editor-style-wordpress-30.html I created a child theme using the Twentyten theme as a parent. I am trying to have the WYSIWYG editor use a custom stylesheet. I added this to my functions.php file: add_editor_style(); Then I created an editor-style.css file in my child them...

How to represent the data for threaded comments(along with comment voting) in mongodb?

For my blog, I want to incorporate my own commenting system without relying on the default wordpress commenting system. I need the comments module to utilize mongodb instead of mysql and the module needs support for the following: Threaded comments Comment Voting The votes on comments need to be aggregated per each comment author f...

Uploading .webm format on Wordpress results in security guidline breach and fail

Hi I cannot upload the .webm video format on Wordpress. This is after adding: AddType video/webm .webm into both: my .htaccess file (on the root folder of the wordpress installation) the mime type handler of our apache server (via our site cpanel) As far as i remember, at first this message instantly gave me the error, it would even b...

Wordpress on Ubuntu install plugins without FTP access

Hello. I run my own webserver for development and I installed a Wordpress blog but when I try to add plugins from admin it asks for FTP access. I don't use FTP and don't want to use and I know I can change some permissions for Wordpress to be able to upload without FTP. What do I need to configure for this ? Thank you. ...

How to insert a particular image in a Wordpress post

Hello Experts, I have theme which shows some default theme in it.The themes name is Flow Hub.In first page and all of the other pages I have a default image there.But my requirement is to replace that default image in there,with the image which I am inserting with the Post. It could be thumbnail or any of the size. Please suggest how to ...

Superfish Menu inside WordPress Queries

Hi, I am using jQuery Superfish Menu inside my WordPress theme, where I have the following setup inside my sidebar.php file: <div id="sidebar"> <ul id="themenu" class="sf-menu sf-vertical"> <li><a href="index.html" class="topm currentMenu nosub">Home</a></li> <li><a href="about-us.html" class="...

How to add wysiwyg editor in Wordpress meta box

Hello everyone, I'm creating a meta box for my custom post type. There are multiple fields where I would like to use wysiwyg editor rather than <textarea>. Is is possible to add multiple editors to a meta box? I would really appreciate your help! Many thanks. Dasha ...

Wordpress loop repeat itself

Hey there, Lets say i have a blog with 10 posts. I want to display 20 posts on my frontpage. How can i make the wordpress loop repeat itself till it reaches 20? if ( have_posts() ) : while ( have_posts() ) : the_post(); endwhile; endif; Btw... i do not want two loops... easy answer would be to have 2 loops, each with 10 posts, making...

What is the best approach to write testunit in framework such as wordpress ?

i'm starting a new project. And what to know how to write a good testunits in existing framework such as wordpress ? is it possible to use phpunits or selenium RC ? ...

Wordpress- Displaying and layering custom fields/posts

Hi- I am somewhat new to both Wordpress and PHP, and I wanted to get advice on the best way to tackle my problem as I have had little luck doing it successfully so far. There are two jobs I want to handle: First of all, I want to have a conditional include on my home page that does the following; Find a custom post type home_content ...

Only returning parents in the wordpress loop

I am using a custom post type in my wordpress theme, and I need help with the loop. Here is my code: <?php $loop = new WP_Query( array( 'post_type' => 'magazine', 'posts_per_page' => 10 ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <li> <?php the_post_thumbnail( 'magazine' ); ?> ...