wordpress

Wordpress, get links to Custom Content

I have created a custom content and I need to have links that go to the next post. I am currently using this two methods: previous_post_link( '%link', '' . _x( '', 'Previous post link', 'twentyten' ) . ' %title' ); next_post_link( '%link', '%title ' . _x( '', 'Next post link', 'twentyten' ) . '' ); But the problem is these methods ...

Upgrade Wordpress Widget to use the Widget API

Hopefully someone can help me out with this. I am upgrading a widget from the (really) old method of get_option/update_option to store/retrieve widget options to use the newer Widget API. The goal is to be able to use multiple instances of the widget, which I have successfully done, but now I'm running into a problem. The plugin I'm wor...

Wordpress / PHP - Do a single shortcode

Hi In WP you can filter shortcodes from a string and execute their hooked functions with do_shortcode($string). Is it possible to filter a single shortcode, instead of all registered shortcodes? for example I need a few shortcodes to be available for comment posters as well, but not all for obvious reasons :) ...

Wordpress rewind query not working

I've got a little sidebar that displaying in the code before the main page content. I wrote this (janky) function to pull in recent posts and comments. Works great, however, its screwing with all my pages and putting posts on all of them. How do I reset/rewind the query or make a new one so all my pages display the correct content? <?ph...

How do I change the line-height with this code?

<font color="#FFFFFF"><span style="float: left; position: relative; top: 25px; left:100px">text here<br>and more text here....</span></font> ...

Wordpress 3.0: Menu Question

HOw can you make a custom menu that goes to the home page but the url is not static? Like I am in a test server right now, so the url is localhost/mywordpress. I put a '/' in the url for my custom menu but it redirects to localhost. Is there a way to put it in a way it can goes to the homepage of my test server? Thanks ...

Fatal error: Call to undefined function is_multisite()?

Hello there, Recently i updated wordpress 3.0 automatically. Before update, everything working fine. After the update, page is displayed with error message Fatal error: Call to undefined function is_multisite() in /home1/servername/public_html/myfolder/mysite/wp-includes/wp-db.php on line 505 I then overwritten all the files wit...

Apply wordpress Template of category to posts.

I want a post have the template of the parent category.. Is that possible? if yes, please guide me a bit. Or if any plugin is available, name it. ...

How to make Wordpress show only one post on the front page with comments, and comment form?

I did the following to display a single post in my home page: home.php: <?php get_header(); query_posts('posts_per_page=1'); //returns only the front page ?> <div id="content"> <?php /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-index.php and th...

How to effectively copy, paste and display an entire Wordpress folder?

I always make make backups in the following way: project0.1, project0.2, and so on. I just started using Wordpress today and it seems like modyfing the root folder's name makes some elements display: Not Found (the CSS still the same). This happens when I copy and paste the root folder of my Wordpress and assign it another name. Which...

Are there any WordPress based e-commerce plugins that allow me to attach meta data per order?

I'm currently using WP Shopping Cart. Per order of a product, I need to attach some meta data such as size, frame options and frame colour. These different options change the price of the end product. My first idea was to simply add a new product via the database each time, adding the necessary info to the product description and chang...

Custom form in Wordpress?

Hello, I'm making a wordpress site which looks like and behaves less like a blog and more like a classic web site. I need to make plenty of custom forms and by now I have three equally bad solutions to this. One would be to create each form as a theme template file. Those pages would submit data to themselves and all would be great, ex...

WordPress Custom Post Types Rewrite

I have a custom post type using WordPress 3.0 that has the following rewrite rule: 'rewrite' => array( 'slug' => 'events', 'with_front' => false ) which gives the following: domain.com/events/my-awesome-event/ How can I pass some additional info into the rule, such as the date, I'm wanting to have the following rewrite: domain.com/ev...

find child image width and apply it to containing parent div jquery

I have an <img> and some <p>'s inside a <div>. I want to get the width of the child img and apply it to the width of the parent div so that the paragraphs of text will wrap to the same width as the img. I want to be able to do this to multiple iterations on the same page. Background: I am developing a wordPress theme that uses the ma...

Reverse order on output of custom values

I am pulling out values from a series of custom fields named thumb: <?php $mykey_values = get_post_custom_values('preview'); foreach ( $mykey_values as $key => $value ) { echo "<img src='$value' width='590' />"; } ?> How do I reverse the order of the output? ...

Jquery UI dialog in wordpress admin

i am attempting to use the jquery UI dialog script in my wordpress theme admin page. everything is straight from the UI demo and yet i end up with a dialog box that looks like : http://flic.kr/p/8gAPt6 notice the dialog is not popped up over anything and instead buried in bottom corner, just before the closing body tag. the UI dialo...

Wordpress Update Version

Hi, Wordpress checks periodically to make sure that the version of Wordpress being used is the most up to date available... If it's not, the latest version number is displayed in the footer and in a notice below the header. Does anyone know the variable/constant/option I can use to get this number? Thanks. ...

Which is a good psd to html/css converter service? (fixed price)

I'm looking for quality code, cheap and extra bonus if they make wordpressthemes. ...

How to append _thumb to all media uploaded and media that is already uploaded to my wordpress blog

Hello guys, I was hoping to get some help on this one. I am looking to have appended to all images and media that get applied to a post via the upload tool in WordPress _thumb to the src of the media object. Thanks, Matt ...

How do I create a submit button for a wordpress hosted blog?

I would like to create a button for a wordpress blog that does just what the digg button does for Digg. Anybody can paste a code to their website or blog which will generate a button. When the button is pressed, I want the link that they are on and maybe a little content to be submitted to my blog. I searched ... but no luck. If anybody ...