wordpress

WordPress loop by function

Hello, I'm creating magazine style theme (not e-commerce) and I want to display 3 latest posts from ex. X, Y and Z category, where this 1st post will be with thumb and other 2 only titles. I found some similar solution themes, but when I look into the code, they created 2 loop for each category (2x3=6) and with this 6 loops code looks ve...

JW player not working properly on wordpress

Hi everyone i am getting a weird error. i have wordpress site and jw flash player plugin. the problem is when page loads, autostart videos doesnt play, just keeping loading and loading but if i pause it and play it agian it works fine. same with the other click to start vidoes , if i play first time , video just keep loading but if i pa...

Wordpress & SQL: Adding a custom field to all posts

I need a SQL query that I can run in PHPmyadmin that adds a custom field (with a value) to all existing posts. Can anyone help? Is this even possible? ...

WordPress on IIS, Issues with WP_Query()

I have a client who has WordPress installed on IIS (php5, fast cgi) and is having an issue with my menu not showing up. Ironically, if he reverts to my previous theme version, the menu shows fine. Since I changed the query between the two versions, I'm wondering if someone might be able to spot the problem in the latter. Previous versio...

Embedding latest youtube video into wordpress

Hi, I'm working on a WP theme, which was working last I check and has since stopped. Maybe it's something little but it's driving me nuts right now. I'm taking a youtube username and grabbing the latest video and embedding into the page. Seems to be pretty simple, but I may be attacking it wrong. Here is my code(any suggestions?): ...

Wordpress Upgrade Problem

I'm trying to upgrade my wordpress site but still get some error.. Downloading update from http://tr.wordpress.org/wordpress-3.0-tr_TR.zip… Dosya indirme başarısız.: Could not create Temporary file. Permissions are correct! I have a VDS and installed it on IIS. Finally, I'm connecting the ftp with Admin pass.. So what is...

Wordpress: Change all custom fields to certain value on the fly

Hi, I need to change ALL the custom field field values on the fly for all posts. Have tried using update_post_meta()-function and it works, but i would like this to happen only when i access a certain page or (even better) when clicking a button, maybe with jQuery AJAX. Now it changes the value even if i don't call this page, which I th...

How do you rename CSS rules?

What if you have a CSS template that's really nice, and you want to use it with a wordpress theme, but don't want to edit all the theme files to use the rules in the CSS template? Is there a way to create a CSS file that acts as a proxy between the new CSS template and old WP theme? ...

Add Facebook Profile Picture after Login?

Here is my code:: //if user is logged in - do this function login() { FB.api('/me', function(response) { document.getElementById('fb-info-block').innerHTML = "Welcome, " + response.name + ".<br /><br />" + "<fb:like href = 'www.whitbreaddesign.com' show_faces = 'false' width = '100' action = 'like' colorscheme = 'light'></fb:like>"; ...

Can I use Wordpress just for the CMS UI, and pull using an API/raw SQL? (How?)

Hi. I have a small project for which I need to offer a CMS UI/storage system. I am guessing that I can have my computer-fearing client use the Wordpress UI to store a set of images for her gallery page, and a set of text for her testimonials page. And then, through a Wordpress function, or raw SQL query into the database, I can get the...

Jquery Accordion & Wordpress

Hi there, am trying to use the Jquery accordion to show a list of links generated by wordpress with the wp_list_categories(); function. This function returns a list of <ul> <li> <a> tags. My problem is that in order to get it working fine, like the second exemple on this page, the heading <a> tags, have to get a special class: <a class...

Making a Whats Hot Section in TwentyTen (Wordpress)

Ok so, TwentyTen is a great new theme, fine. However, I wish to add more functionality to it and make it like a theme having a magazine style front page (similar to Hybrid News) with mainly a "Whats Hot" Featured Section where I can pick up posts dynamically having the most activity on them (like checking the number of facebook likes or...

Wordpress adding custom field update fails

i am picking up wordpress development and reading the book digging into wordpress. i have the code below in functions.php <?php add_action('admin_menu', 'addAmazonAffiliateOptions'); function addAmazonAffiliateOptions() { add_options_page('Global Custom Fields', 'Global Custom Fields', 8, 'functions', 'editGlobalCustomFields'); } fu...

Stack Overflow formatting for Wordpress

I've become so accustomed to stack overflow style formatting that I find it a hassle to format things manually in HTML anymore - specifically for blog posts. Is there anything enabling stack overflow style formatting for word press? Something akin to the markdown plugin for wordpress - http://wordpress.org/extend/plugins/markdown-for-w...

Wordpress: Where to locate the permalink in the database

Someone from our team change the permalink of a page to http://www.example.com/ so this is now the homepage. My problem is I need to change the homepage, but whenever I create a home.php file it is not executing but rather "that" page. I tried to change the permalink in the admin panel but it doesn't give me an option to do so. Then I t...

How to set character limit on the_content() and the_excerpt() in wordpress

How do I set a character limit on the_content() and the_excerpt() in wordpress? I have only found solutions for the word limit - I want to be able to set an exact amount characters of outputted. ...

Reset Wordpress password via SQL?

How would I go about changing a Wordpress user's password directly in the database? I notice it's not just an md5'd password. There is a $P$B at the start Thanks, ...

Easily incorporate blog feed into site

I built a site for a client not too long ago and built it fairly standard. Now she has a Wordpress blog and would like an area on the main site to have links to the most recent blog posts. Is there an easy way for me to pull a list of the most recent posts into this content area without having to chop the page up into a Wordpress templ...

Search specific wordpress MU tables MySQL

I have a blog built that is grabbing information from another set of tables in the MU Database. I need to now be able to also search that database. Does anyone have that MySQL query needed to make a clean search? ...

Good Wordpress 3.0 tutorial?

I have a good knowledge of Joomla, but searching for "joomla compared to wordpress" brings up CMS-dilemma articles. Is there a tutorial that compares the two? ...