wordpress

Dynamically resizing navigation div to main content

Greetings and Hello I am trying to put together a wordpress site, now because the content in the main div is going to be a different height with every page I need the navigation sidebar to stretch to the same height. So with a little javascript tom-foolery I can get the sidebar to be the same height with the following code function ad...

wordpress my_deregister plugin from page

i try to use the next code to load cforms II plugin only on my CONTACT PAGE (http://www.deliciousdays.com/cforms-plugin/) #/template/functions.php add_action( 'wp_print_scripts', ' ', 100 ); function my_deregister_javascript() { if ( !is_page('Contact') ) { wp_deregister_script( 'cforms' ); } } add_action...

Wordpress SQL Select Multiple Meta Values / Meta Keys / Custom Fields

I am trying to modify a wordpress / MySQL function to display a little more information. I'm currently running the following query that selects the post, joins the 'postmeta' and gets the info where the meta_key = _liked function most_liked_posts($numberOf, $before, $after, $show_count) { global $wpdb; $request = "SELECT ID, p...

How can I make two "user" editable areas in Wordpress?

Hi all, is there a way to have two posting areas in Wordpress, for clients who can not go into any HTML? Basically the template has 3 columns. One is vertical nav, thats no prob. Second is like a "sidebar" but where the main post will go, a skinny column. Third is large, "main area" size, but will also be user editable content. Does that...

PHP - SQL query to get update time from table status

This is my php code (I already have a connection to the db): $result = mysql_query("SHOW TABLE STATUS FROM mydb LIKE 'mytable';"); while ($array = mysql_fetch_array($result)) { $updatetime = $array['Update_time']; } echo $updatetime; I get: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL r...

CSS breaks in Explorer

This Wordpress site works fine in Firefox and Safari. However viewing in Explorer 7 (don't care about 6) breaks the header/navigation area. Weirdly enough, refreshing the page fixes the alignment issue, but then hides the header. http://anothersideof.me Any suggestions would be greatly appreciated. ...

WordPress query posts into two Divs

I want to display my wordpress posts in a category in two divs. So for example: <ul id="left"> <li class="post">POST 1</li> <li class="post">POST 3</li> <li class="post">POST 5</li> <li class="post">POST 7</li> </ul> <ul id="right"> <li class="post">POST 2</li> <li class="post">POST 4</li> <li class="post">POST 6</li> <li clas...

WordPress issues with htaccess causing 500 server error

I have a few customers of my custom wordpress theme that are reporting that their sites have went down over the past few weeks due to a 500 internal server error. In each case, it appears that the htaccess file has been to blame. In one case, the user's hosting company found a "_pvt/service.pwd" line in there that was apparently causing...

Where do you include FirePHP in Wordpress?

I'm using require_once() in header.php to include the FirePHP library. In the page.php I'm doing the usual... $firephp = FirePHP::getInstance(true); $firephp->log($categories); Getting these errors.. 'Headers already sent....' and Cannot send log data to FirePHP. You must have Output Buffering enabled via ob_start() or output_buff...

Wordpress, when using the "comment_text" action is it possible to get commenter information?

Is it possible to get information about the commenter with the comment_text action in wordpress? What I want to do is modify a comment someone makes based on who they are, like if they are user_a I might want to make their comments show up as green, if they are user_b I might want their comments to be bolded, or formatted differently. ...

Redirecting a url - Wordpress

Hi, I'm working on a wordpress site, with a blog post that ends like: http://www.blog.com/?p=2. However, I need to change the wordpress settings so that posts end in the following format: http://www.blog.com/02/11/2009/this-is-a-post. When I do this, obviously it will break outside links to the post that is named http://www.blog.com/?p...

How to successfully Rewrite a URL with .htaccess

Hello. I am trying to rewrite mysite.com/broadcasts to mysite.com/feed so that it will show up in the location bar as "broadcasts" but actually go to /feed. Here is what I have in the .htaccess file: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^broadcasts(/)?$ /feed/ </IfModule> But this isn't working... I get a 4...

What is WordPress doing for content encoding in its MySQL database?

For some convoluted reasons best left behind us, I require direct access the contents of a WordPress database. I'm using MySQL 5.0.70-r1 on Gentoo with WordPress 2.6, and Perl 5.8.8 ftr. So, sometimes we get high-order characters in the blog, we have quite a few authors contributing too, for the most part these characters end up in Wor...

Sequential Order of Wordpress Hooks?

hello, can anybody help me. is there any documentation about sequential order of wordpress hook ? especially for action and filter in backend ? ...

How to sanitize this particular mysql query ?

i got this SQL query where post_title taken from $_GET $sql = "SELECT ID FROM posts WHERE posts.post_title = '5-design-web-colourful'"; What is the best way to sanitize this and make it more safe ? EDIT : (as requested) I'm trying to create a plugin that work to hide a particular category (named private) and all of its post for ever...

WordPress jQuery Toggle based on category

I have the following Nav: <li id="categories"> <ul> <li class="cat-item cat-item-8 current-cat"><a href="#">Link</a> <ul> <li class="cat-item"><a href="#">Link</a></li> <li class="cat-item"><a href="#">Link</a></li> <li class="cat-item"><a href="#">Link</a></li> ...

How to upgrade self-hosted wordpress and installed plugins of live site to latest availalbe versions without facing any trouble?

I have to upgrade a running wordpress site's wordpress CMS and some installed plugins.and some plugins which i want to upgrade has been modified before to achieve something. http://is.gd/b5j9h How to upgrade Wordpress to latest without loosing anything, any post, comments? What precautions should i take? How should i take backup of al...

Wordpress add_meta_box() weirdness

The code below is working nearly flawlessly, however my value for page title on one of my pages keeps coming up empty after a few page refreshes... It sticks for awhile, then it appears to reset to empty. I'm thinking I must have a conflict in the code below, but I can't quite figure it. I'm allowing the user to set a custom page title ...

Question about wordpress plugin

http://demo.thethemefoundry.com/traction/#post-183 Which wordpress plugin is this, to have post image on the left side and shortened version of your post on the right, and read more button below? Thank you ...

Wordpress Not Publishing Posts To Custom Template

I am building a theme that has a lot of custom templates, like every page. Ridiculous, but for some reason the template I made for the "postings" page is not getting the posts? I have set the post page in reading preferences, and I have set the page to use my template, but it still publishes posts to a default template. Of all the custom...