wordpress

Header is displaying link color

Let me start by saying I am a CSS newb. I am using wordpress and my post heading (h2) is displaying the color of the links on the page. I would like to keep all h2 headings black while all other links would be red. When changing the link color in the css, it also displays the post heading red as well. How can I override this? I am s...

WordPress 3.0: Adding sub menus to custom post types

I'm not sure if this is an oversight on my part, or an oversight in the development of WP 3.0 custom post types; you can add new sub menu options to built in Posts or Pages quite easily. I cannot for the life of me figure out if it is possible to add them to a custom post type. I have tried add_submenu_page( 'custom_post_type' ... (repl...

Cookies not working for password-protected Pages on WordPress

Initially I had the issue reported in this question. Now, what I noticed is that there are some browsers that accept the password, and there are some which don't. Difference? For some reason the cookie is generated when I log in into the Administration module, but it isn't when I write down the password to access the page, forcing it to...

How to remove carriage returns from output of string ?

I am using wordpress as a CMS and trying to allow user fields to be input to populate the info windows in a Google Map script. I am using this to select the id and pull in the content from a custom field. It works fine unless there is any html in the custom-field which breaks the script. I looked at htmlspcialchar and htmlentities but ...

Query posts based on author id

I have the current author id stored in $theauthorid I want to do a query based on the author id so I do this query_posts('author=$theauthorid'); However it does not work unless I write the id manually. I know the id is stored correctly as I get the correct id when I echo it. ...

Send email in wordpress

hi, I'm trying to send an email using PHP mail() in a wordpress site. I created an empty page http://www.exam-vision.com/request-flip-up-instructions which template includes the php code shown below. When I post the data, isset($_REQUEST['email']) is false, while I can in firebug that the data have been posted correctly. What can be wro...

Wordpress SQL query help (list posts from specific category)

I want to list those posts from wp_posts whose term_id is 38 , but i have a problem , term_id is stored in different table which is wp_term_taxonomy and wp_pst is different table, how can i search the particular record from these two tables ? If term_id inside wp_term_taxonomy is 38 then show the records from wp_posts...how can i do this...

What's a good resource for migrating content from Ektron to Wordpress?

I am looking at porting a large scale website for a university from Ektron to Wordpress. Is there a tool out there that does this smoothly? If yes, where can I find it? ...

Problem with images in upload directory after upgrading WordPress to 3.0

I've developed a WordPress plugin and it wordked well from WP 2.0 and up to WP 3.0rc1 (haven't tried rc2) but now with rc3 and milestone 3.0 a strange and irritating error appeared. If you check out my demo page you will se that none of the cover-images is working. they are in the same place as before but they can not be hotlinked or sh...

Wordpress "Home" link

Hi all, I'm working on a Sandbox based Wordpress theme and I would like to add a home link as a first item in the navigation. I know I should change the function in "sandbox_globalnav" in the functions.php file, which is: // Produces a list of pages in the header without whitespace function sandbox_globalnav() { if ( $menu = str_replac...

How to Create an Array from a Single Variable and Form Multiple Foreach Loops?

I'm fairly proficient in HTML/CSS, but very new when it comes to the likes of PHP and Javascript. I've jumped headfirst into coding Wordpress shortcodes (basically php functions), and so far, through trial and error and seemingly endless browser refreshes, I've been able to figure everything out. I just hit a huge wall though, hence wh...

need help on wordpress feeds query parameters

Hi guys, may i know how do i set the number of feeds displayed on a word press blog? for instance, i used http://beautifulreminisciencezz.wordpress.com/?feed=atom&year=2009 But it returns me only ten results. For blogger, I know the query parameter is 'max-results' However,t here's nowhere in wordpress where they mentioned...

Wordpress creating plugin for most viewed posts problem?

Hello,I just want to create plugin that will when visitor(user,visitor,...) visit some post,remember what post,and to increment counter of that post,I wrote this code,but sometimes,counter is incremented,even post isn't viewed,or post with other Id is added to a table.Can someone help me with this,please.I know that there are plugins for...

User submitted posts in wordpress 3.0

I am in the middle of building a site with user submitted posts that let the user upload a zip file along with images. At the moment I am using TDO-Miniforms and wordpress 2.9.2, but TDO-miniforms has stopped development and is broken with wordpress 3.0 that just came out. I would like to update the site to 3.0 but I don't know of any al...

Wordpress Database SQL query help needed

Hi, I've written a PHP script to access the latest item from the wordpress database, which it does. But I need to use it twice, once for the latest item from a specific category, and another from a differerent category... But right now I cannot figure out how to put the query together. The post has a post_parent, which in another tabl...

Allowing users/administrators to update content management themselves

Is there an option besides Drupal or Wordpress to use to allow the user or administrators of a site to update and manage content on the site themselves? Is it possible to use Drupal or Wordpress for a particular section of the site that I want to allow the above mentioned but not the rest of the site. Basically I am just looking into o...

How do I map custom domains to my sites on a multisite Wordpress installation?

I just upgraded one of my many blogs to Wordpress 3.0 and I was glad to see that I now should be able to run all my blogs from a central installation. I have the multisite stuff configured and up and running, and can create new blogs as I wish. My host is set up to handle wildcard subdomains, but I'd like to map my already existing, ...

Wordpress e-commerce plugin

Hello! I'm new with this plugin and i wounder if you can list products that has the same variation. For example i have t-shirts with the variation "color" the options are "red, blue, green" and "Sizes" "Large, Medium, Small". I would like to list alla "green" t-shirts that is the size "Small". Would appreciate all kinds of answers. ...

Is it possible to convert a Wordpress theme to a flat HTML or Django template?

Hoping to port a Wordpress theme to Django. The theme is the "Thesis" theme, and it keeps everything in a very convoluted way, at least it seems convoluted if you want to just have a look at the full page. The only way I can see doing it is groking through a rendered page by looking at the source HTML, but its not pretty. ...

Separate Title Page in Wordpress

With a wordpress blog (preferably the new 3.0), Is there a way to have a different page be the home page of the blog, and put the usual blog posts and such on a separate page, such as www.domain.com/blog ? ...