wordpress

Wordpress updated posts on home page

Hi, I've got a blog where I often have to update my articles. Now, I want the updated articles to be shown on the home page (as if they were created today). "Sticky" posts don't solve my problem and I didn't find any plugin that would do that for me. Changing the "created"-date isn't a solution as well because all posts have a url like ...

Embedded Wordpress Feature - What do I Need?

I would like to create a feature that would allow Wordpress users to be able to insert this into their blog posts: Car Title (heading) Car Description (paragraph) Photograph of car (image) List of items (bullet list) Steps for how to assemble car parts (e.g. a gearbox) (heading, paragraph, heading, paragraph...) It should be really e...

Wordpress custom post ordering problem

I am ordering my posts by using a custom field "order". For each post the value of order is a number, which dictates where I want the post to be positioned. I have the following: query_posts('category_name=category&meta_key=order&orderby=meta_value&order=ASC'); This seems to have worked fine up until post #10, this posts positions i...

If page called directly then throw 404

I have created a page on a WordPress site called AJAX which lives here: domain.com/ajax/ This page is used for AJAX calls. What I want to prevent is direct access to it, so basically allow JS to call the page but if someone types in the url and tries to access it on its own then they will get a 404 (basically making it as though the page...

Wordpress username availability with AJAX using Form-Validation-Engine

Well, my previous question brought me to use this script: http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/ Because of my total lack of knowledge I don't understand how can I fit the "Inline AJAX validation" with the "ajax[ajaxUser]" class to work checking username availability when set...

echoing a php string with a wordpress include

hey. with the following code <?php if (qtrans_getLanguage() == "en") { echo <?php include( TEMPLATEPATH . '/slider_en.php' ); ?>; }else{ echo <?php include( TEMPLATEPATH . '/slider_de.php' ); ?>; } ?> i'm trying to include a file, based on the chosen language of the website. guess my idea is right but i'm totaly wrong on ...

How to display number of posts for a given time frame in wordpress

Hello guys, I was hoping to get some ideas as how I can get a number of posts that have been posted on our blog BUT within a certain date range. I know how to get total number but need this extra functionality. This is what I have for getting total number of posts: $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE po...

How to Explode and combine values in a wordpress query

I have a multiple pages in wordpress all with a single custom field called portfolio-section. some examples of the data are page 1 : portfolio-section = red page 2 : portfolio-section = blue page 3 : portfolio-section = red page 4 : portfolio-section = red,blue now im executing a wp query: $querystr = " SELECT wposts.* FROM ...

Thumbnail Captions Single and Double Click?

Hello all, I know nearly nothing about this all so I turn to you for some desperately needed help. If you need to see any more code or info just ask and i'll answer asap. the following code snippet is what im using for a photo gallery on: http://luisposada.co.uk/home/photography-2/ The problem is the following the caption below the m...

Add & Separate Custom Post Types in Taxonomy.php / Taxonomy Page

I have a taxonomy.php file to display taxonomy terms. I added a filter in functions.php to include post types for the taxonomy page query. This filter: add_filter( 'pre_get_posts' , 'ucc_include_custom_post_types' ); function ucc_include_custom_post_types( $query ) { global $wp_query; /* Don't break admin or preview pages. */ ...

get_page_by_title in Wordpress. How to use to fetch posts?

Recently, Wordpress added in the Trac that you can fetch posts by title using: get_page_by_title Instead of querying the database straight up. If I wanted to get post titled "my farm", how would I change the parameters so it is searching for a post (or a post type?): $page_title='Joey in the forest'; 'character' is a post type. But ...

Wordpress : How Do I get taxonomy name in taxonomy.php?

I am able to display the term of the taxonomy in the taxonomy page, but how do I get the taxonomy , or display the taxonomy on the page. for example, when I have a taxonomy called "fruit" and I click on a fruit term called "lemons", How do I display both "lemons" and "fruit" on the taxonomy term page? Just looking for the get term equ...

WordPress Subcategory listing with Post Title

Hi, I would like to create a tutorial website using word press. How can we display subcategory with all its post title in a page. Consider,I have main navigation(Category) as Lessons and it has different subcategories like Chapter1,Chapter2,Chapter3 and so on....Here I need to display all subcategories under Lessons with titles of its ow...

Help with custom slider/lightbox for wordpress please?

I am trying to make a custom slider with a lightbox gallery built into it for wordpress use. I basically popped the colorbox plugin inside of the easyslider plugin. I have it working great, but I need a text link sitting below the slider that will also open the gallery, starting at image 1 and going to last. As it is now, clicking the im...

How to apply different style to category navigation links in wordpress

Hi, I am using wordpress 3.0. Is there any ways to apply different style class to category navigation. Eg: Consider we have three categories Audio,Video,Upload.Here I need to show Upload category in different style except other two. Thanks... ...

How to Sharpen Post Thumbnails in WordPress 3

Hello! I am using the default thumbnail feature of Wordpress 3 to add thumbnails of various sizes to my posts. Now the problem I face is that the shrinked thumbnails become very blurry. In .Net I know how to sharpen images and this works really well for thumbnails, so I am now looking for a way to do this for Wordpress (in php obviousl...

Show subcategory of a particular Wordpress category

I want to show the hierarchical list of categories using wp_list_categories but I want to show only one category and its subcategory <ul> <li ><a href="#">Main category</a> <ul > <li ><a href="#">Sub cat 1</a></li> <li ><a href="#">Sub cat 2</a></li> <li ><a href="#">Sub cat 3</a></li> </ul> </li> </ul> ...

WordPress: Custom rewrite rules - .htaccess or functions.php?

I'm going crazy. The only thing I want to do is add these rules to the site that I'm developing: fastigheter-spanien/x property/X&lang=sv fastigheter-usa/x property/X&lang=sv properties-spain/X property/X&lang=en properties-usa/X property/X&lang=en Where X is the name of the post. These are all custom post types. The reaso...

Wordpress functions in wordpress functions and escape characters...

I have been trying use the edit_post_link() function to contain an image. All of the quotations and parameters are driving me crazy... How can I get this to work? This outputs Edit inside the anchor link for editing the post. <?php edit_post_link(__("**Edit**"), ''); ?> This outputs the image I want to use. <?php echo "<img src=\"" ...

wordpress get current user

hey there i have a directory inside my wordpress directory for some template application apacheWWW/wordpress/jtpc in my application i want the wordpress current user id i am able to do this in one page but in the other i get an error this is what i am doing to get the user id require_once( '/../../wp-load.php' ); global $curre...