wordpress

wordpress external javascript file for inline editor plugin?

Hi php wordpress people, I'm using inline editor plugin for wordpress I am aware that for seo purposes it is best to make sure these are external files. When I view the source in my browser I can see the javascript for inline editor plugin is displayed in the page code. Is there a way to make this an external js file, within the wordpr...

Two or more tinymce editors.

I'm currently developing a plugin in which i need two tiny_mce editors on the same (post-new.php) page. Any hint? Please please please! Thanks. ...

Need to add selector to child UL in WordPress menu

In order to make use of a particular jQuery menu in WordPress, I need the child UL (dropdown part of the menu) to have a selector added to it (third line, below): <ul class="dropdown">     <li>the first list item         <ul class="sub_nav">             <li>child list item</li>         </ul>     </li> </ul> Note: I left out the link ...

get post from wodpress

I have a static website, and i like to take some (+ or - 15) post from my 200 post wordpress and get it in a static website with design and thing really different from the blog i have get that code : <?php $my_id = 1828; $post_id = get_post($my_id); echo $post_id; ?> but how to tell the address of the blog, and how to get the dat...

How to back up wordpress site to be restored after a clean installation

My Wordpress blog appears to have been hacked and now blogs do not save and any changes I make such as approving a comment do not have effect. I am trying to backup my website so as to uninstall wordpress and perform a clean re-instillation. I want to create a backup so that when i restore the website will appear with everything the same...

Port of Statpress to CodeIgniter

I was wondering if anyone has ported the wordpress plugin Statpress into a CI library. If they hadn't, would this be worthwhile doing? ...

Wordpress blog setup script to create about, contact, privacy pages

I create lots of blogs that all share the same basic structure of a single "post" and 3 "pages" (about us, contact us, privacy). For the "post" page, I usually just edit the existing "hello world" post once I'm in the newly created blog. For the pages, I start with the "about" page and just edit that for my "about us" page. I'd like to ...

Wordpress custom post_type templates

We are currently working on a Wordpress page that reuses data from another Application. To keep things clean, but still use most wordpress features, we decided to use custom post_type settings (register_post_type) for this data. Now the Problem is, that while accessing these Posts is no problem, the Permalink's to them fail with 404's. ...

How to add new custom submenu under another plugins menu

There is plugin called Shopp in my WP admin page , this plugin has got top level menu "Shopp" . This is the top level menu: $menus['main'] = add_menu_page('Shopp', 'Shopp', SHOPP_USERLEVEL, 'shopp-orders', array(&$this,'orders')); And I've created some plugin which need to add as submenu under "Shopp" top level menu , so it is adding...

Redirect .aspx to WordPress

I'm transferring an ASP.NET site to WordPress, and all my URLs are identical, except for the .aspx suffix. Is there a one line regex htaccess solution that will forward people from foo.com/bar/page.aspx to foo.com/bar/page and foo.com/bar.aspx to foo.com/bar ...

Escaping double quotes (PHP)

I want to escape double quotes from this string: <li><a href="the_permalink()">the_title()</a></li> The following works fine: echo '<li><a href="'; echo the_permalink(); echo '">'; echo the_title(); echo '</a></li>'; ... but how do I get them all in one single statement? Thanks ...

godaddy windows shared hosting and wordpress

I have setup the wordpress blog with godaddy on one of my domain (i have multiple site hosted on same domain) If i hit path http://mysite.com/blog, it redirect to http://mysite.com/folder_name/blog, where folder_name id folder i created with godaddy for mysite.com domain and gives 404 error. if i hit http://mysite.com/blog/index.php then...

Integrate vBulletin into a wordpress page (only frontend)

I have a simple wordpress website but the customer wants a vbulletin forum with the same look into the website. the same look is just a matter of editing the css files and layout files. but how can i put the vbulletin into a wordpress page? ...

Wordpress: using a test theme only for a specific user

I'm testing a new template for a wordpress based site, and I'd like to test it directly on the live version instead of making copies. I thought I could create a test user (wordpress is bridged with vbulletin which handles user auth), serve the usual theme to anyone BUT that specific user, who would get the new testing one. I don't want ...

Keep values selected after form submission

<form method="get" action=""> <select name="name"> <option value="a">a</option> <option value="b">b</option> </select> <select name="location"> <option value="x">x</option> <option value="y">y</option> </select> <input type="submit" value="Submit" class="submit" /> </form> On submitting the form, ...

Fetch posts starting with alphabet [x]

<?php $temp_query = $wp_query; ?> <?php query_posts('tag=sometag,anothertag&posts_per_page=10'); ?> <?php while (have_posts()) : the_post(); ?> // print post here <?php endwhile; ?> <?php $wp_query = $temp_query; ?> Using this simple wordpress loop, how do I show ONLY the posts (post titles actually) starting with say letter 'G'. I...

Migrating Wordpress to another host: Can't login b/c it's confused about the host!

It's incredible! I've just migrated a simple Wordpress site from my usual host to my client's host. The root directory for the site used to be http://www.imagineelection.com/watamu, and now it's http://www.watamuturtles.com The http://www.watamuturtles.com homepage loads fine, but all of the links on the page still point to the old do...

Wordpress: add a custom field option that's available to all posts

As part of my theme install, I'd like to add a set of custom field options to the wordpress database that would be available to all posts as long as my theme is active. For example, I'd like to add these fields: custom-image-1 custom-image-2 custom-image-3 And also these custom-image-1-link custom-image-2-link custom-image-3-link An...

Helicon on IIS6 and Wordpress

Hello all, I have a site running on IIS6, Windows 2003, with Helicon (free) to rewrite urls. I installed wordpress into its separate website under IIS I can reach to the mainpage blog.domain.com/blog but when I try to click on the "Login" and type my username and password and click submit it will just 404 not found instead of redirec...

Wordpress page grouping

Is there any way to group/folder my pages in Wordpress. Pages as in pages, not posts. In case I'm using it as a CMS and have, say, 200 pages. 10 main pages and the rest are all sub-pages. It'd be really inconvenient to see all the pages as a one huge lists. I know I could use posts and categories, as I won't be needing the blog function...