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 ...
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...
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...
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...
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...
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 ...
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...
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 ...
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...
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. */
...
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 ...
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...
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...
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...
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...
...
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...
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>
...
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...
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=\"" ...
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...