wordpress

Wordpress: Error establishing a database connection. Yeah, I've tried that. And that...

This is driving me nuts! I have a test instance of Wordpress installed on my MacBook Pro, which has suddenly stopped working. If I head for http://localhost:9003/wp-admin/ I get: Error establishing a database connection This either means that the username and password information in your wp-config.php file is incorrect or ...

csshover3 doesn't work with wordpress !!! [Fix IE6 Hover]

csshover3 doesn't work with wordpress !!! [Fix IE6 Hover] behavior:url('Script/csshover3.htc'); /*From Style.css*/ http://photoshop.faressoft.org ...

wordpress as a cms photo gallery

So I am stripping down wordpress and using it as a simple photo/video gallery site. Basically each section has two types of pages: the gallery index (just thumbnail images), and the photo/video page itself. The problem that arises is one of lazyness, I have a whole lot of photos and videos to add, and creating a new post for each item ...

How to query wordpress posts by custom field

I am attempting to have lots of posts in a specific category. The post will have a custom field that will be a date. I need the posts to be organized by the category, the custom field, and each page of posts should be separated by month of the custom field. So hard to explain... Page of posts for the current month. Links at the bottom f...

Custom Post Type URL redirected wrong

I've got some Wordpress CPTs. They correct URL should be /wordpress/training/training-page/, and that's the URL I see in the admin manage page, but when I click the link the URL I end up with is /wordpress/blog/2010/05/21/training-page/. I deactivated my plugins with no success. Does anyone know how to keep the correct URL intact? Here...

Is it possible to include a form in a wordpress page?

Hi, I have the following code in a php template called contact_us. I have created a new page which uses this template, but when you click submit it doesn't post back to the same page and display what the user entered in the form. Any ideas why this doesn't work? Thanks, if ($_SERVER['REQUEST_METHOD'] == 'POST') { $name = $_POST["name...

wordpress custom post type; query by id works, by post_name doesn't

Hi, I would need some help with Wordpress and custom post types/permalinks. I registered custom post type by the name "services" with the following arguments: $args = array( 'labels' => $labels, 'singular_label' => __('services'), 'public' => true, 'query_var' => true, 'show_ui' => true, 'menu_icon' => get_stylesheet_direct...

WordPress CMS Plugin

I remember seeing a plugin for WordPress that allowed you to have blocks of content within pages, but can't remember the name. Anyone know which one it is? ...

wordpress include file

I have put some php code in a sidebar-01.php i like in my template file to get that code How do u do that ? (i don't what to change the code of WP for updating purpose) i have try include('sidebar-01.php); - it don't work i like to have a function like : get_header(); for my file, something like : get_file('sidebar-01') is it possib...

controlling the number of posts on a wordpress archive page

Hi, I have set my wordpress blog's frontpage to show only three posts. On the archive.php template, when the posts of a tag are viewed, I want to show 10 results. How do I do this? I tried this php code. But instead of only showing the posts with a certain tag, it queries all recent posts. //in archive.php (before the loop) query_pos...

Impossible to style a textarea generated by a Wordpress contact form plugin!

In this page, I'm trying to style a textarea generated by Contact Form 7, but it doesn't matter what I do I can't. code: CSS: .wpcf7-form input, #wpcf7-form textarea { border-color: #808080 #C0C0C0 #C0C0C0 #D4D4D4; border-style: solid; border-width: 1px; margin: 0 400px 10px 0; padding: 5px; width: 350px; } #wp...

What's a good CMS for an intranet site?

Hey all, I know this question has been tossed around by many developers and designers. I just got finished with my companies intranet site using joomla 1.5 with a custom bulit template and modifying almost everything in joomla. It got me thinking if I should be using an enterprise CMS instead of an free open source CMS. I almost wen...

Do I really need CMS (wordpress, drupal, joomla, etc..)?

Hi there, I am a fresh graduate developer not much of experience in anything. I bought a domain and hosting service, and now I'm building my website. I'm using php, html, javascript. Now my website is going to be a blog oriented somehow I'll need to post stuff occasionally about my robotics or whatever. I'm not web developer, still I can...

website screen resolution auto resize

I have a website, its uses the 960 grid system, everything is fine. Except the header, the header is too tall! Is it possible to reduce the entire website size when the user's screen is less than or equal to 1024x768 ? (same way you can press CTRL+ and CTRL- in IE?) ...

How to apply different style to Wordpress wp_nav_menu()

Hi, I am using Wordpress 3.0.Is it possible to apply different style class to wordpress wp_nav_menu()? Currently five pages for me and I would like to apply in following order. <ul> <h2> <li><a href="#">Example1</a> </li> </h2> <span> <li><a href="#">Example2</a></li> </span> <h4> <li>...

How to show date with previous post link in Wordpress

When viewing a post, I want to show the date of the previous post underneath the previous/next post links but $post is not available in previous_post_link(). How can I carry forward the post date from the previous post as well as get the date for the next link? ...

What's the best/most efficient way of removing Wordpress elements (deleting/commenting, via CSS or PHP declaration/filter)?

When I'm building a Wordpress theme I usually comment the code which generates the element I want to remove, but I was wondering if professional Wordpress theme developers do it this way. Does Wordpress have filters and declaration which remove elements? For instance removing elements in the contact form (e.g Website field). Date and ...

Using widgets outside the sidebar?

Is it possible to use widgets outside of the sidebar? When you assign them in the admin panel you have to drag them to your sidebar but I would like to implement a search function outside the sidebar. Can I do this? ...

widgets_on_pages not working

Hello i'm using widgets_on_pages to place widgets on pages, i installed it and added a widget to the panel in my admin section, then i added [widgets_on_pages id=2] ("its the 2nd sidebar and it said i should add this") into my html on the place where the widget should appear but it only shows the code i added in pure text, nothing else h...

WordPress - Clashing Plugins & Technologies

I put this on WP forums but not much help so far. Basically on my site I have contact form 7 and a jquery colorbox among other activated. Basically yesterday the spinner on CF7 didntstop spinning. If the form was all filled out the form sent but it didnt display confirmation etc. Then i deactivated and it works now. BUT... The contact ...