Vincent Ballut
Forum Replies Created
-
Forum: Hacks
In reply to: Get the ID of the current category in taxonomy.phpI think what MarkedUp needs is the ID of the category being displayed on an archive page, not the categories assigned to a particular post (in which case using
get_the_categoryis right).To get the ID being displayed, use the following:
$wp_query->get_queried_object_id();On a post page it returns the post ID, on a author page it returns the author ID, and on a taxonomy page it returns the taxonomy ID. 🙂
Forum: Themes and Templates
In reply to: [Catch Box] [Theme: Catch Box] Size of image in sliderHey
From what I can see in your code, the image width automatically adjust to the size of the container (in this case 526px). What would you like to change exactly?
There’s a plugin for Firefox, User Agent Switcher, that allows you to change the User Agent used by your Firefox to, for example, pretend you’re an iPhone. 🙂
Full tutorial : http://martin.kleppmann.com/2008/01/03/imitating-the-iphone-user-agent-in-firefox.html
Cheers
Forum: Hacks
In reply to: View multipage post in a single pageAfter some research, it seems you just need to use
echo $post->post_content;instead ofthe_content();to display the full article.Forum: Plugins
In reply to: pagemash ‘trash” wp 2.9 update neededif you don’t want pageMash to list trashed pages, there’s a lil hack :
– find the pagemash.php file in the plugin directory
– on line 70 and 72, you should have the SQL requests.
– simply add “AND post_status != ‘trash'” to them and you’re done :`if($wp_version >= 2.1){ //get pages from database
$pageposts = $wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_type = ‘page’ AND post_parent = ‘$post_parent’ AND post_status != ‘trash’ ORDER BY menu_order”);
}else{
$pageposts = $wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_status = ‘static’ AND post_parent = ‘$post_parent’ AND post_status != ‘trash’ ORDER BY menu_order”);
}`