wordpress

Setting A Header Image for a Wordpress Page and all its children

Wordpress. I've got a handful of pages, each with children -- varying depths. Let's say it's like this: +about -- page1 -- page2 +stuff -- page1 --- sub-sub-page -- page2 My problem: I want to set a graphic header for all the "about" pages, including all its children... and a different graphic header for all "stuff" pages and all it...

Wordpress Questions?

Can I delete the wp-config-sample.php after I save it as wp-config.php. And is there a way I can transfer all my content from my old web pages which are not in a database to wordpress instead of manually adding all the content page by page. Keep in mind I'm adding wordpress to my godaddy hosting account. ...

Wordpress admin section cleanup?

Anybody knows a good plugin for Wordpress to provide a nice Admin dashboard which also cleans the regular Wordpress update mess. I do not want customer getting distracted with the loaded content in the backend with events, news and updates (messy content updates) in the Backend login? Thanks in advance. ...

How to get DOCUMENT_ROOT to work on both localhost and web host?

I have a WordPress plugin that I would like to work on localhost as well as in deployment without modification, but I can't seem to set the location for a directory using one statement. I would like to do this: $feed->set_cache_location($_SERVER['DOCUMENT_ROOT'] . '/wp-content/cache'); While that works on the web host. On localhost i...

Can two different WordPress blogs on the same server use a common theme folder?

I have two WordPress blogs running on the same server, so they both have access to the same file system. Both blogs use the same template, and this template is duplicated within each theme directory. Every time that I update the theme I need to copy over the new files to both theme directories. Is it possible to have both of these blog ...

wordpress doctype question?

how can I code in the following code into a wordpress site without the code causing an error with the php coding thanks. <?xml version="1.0" encoding="utf-8" ?> ...

WordPress displays private posts to logged-in users -- how to turn this functionality off?

On a new WordPress 2.8 installation, I have some posts assigned to category Foo that were previously public but have since been made private. When I am logged into WordPress (as the admin) and happen to also be browsing the Foo category page in a different tab in the same browser, I can see the private posts on the category page, with t...

How to avoid javascript retrieving values from non-existing elements

Update: clarified question (I hope) Hi. I'm developing a plugin in Wordpress and I'm outputting elements according to user privileges A and B. In case of A, I ouput element "Foo". In case of B, I output element "Bar". Up till now, I haven't checked if an element exists before I try to retrieve the value. This of course gives me a java...

Display Wordpress Archives one category at a time?

I am almost done with my humble attempt at a custom CMS using Wordpress. The only difficulty I have is making a page display the archive for only one category (and it's children). Anyone has an idea? Thanks a lot! Regis ...

Wordpress php fatal error question?

How do I fix the following error. Fatal error: Call to undefined function language_attributes() ...

WordPress - producing a list of posts filtered by tag and then category

I'm trying to make a WordPress site that has six lists on a page, each list showing posts from a different category. Simple. But then, if a user selects a tag, taking them to that tag archive page, I want them to still see the six-list template, but all the posts within each category are also filtered by the tag. So lists of posts are f...

Wordpress: Generate Array of Tags From Posts in a Particular Category

Using Wordpress, I need to generate an array of tags(terms) from posts in a particular category. For instance, if I have two categories, "apple" and "orange", I want an array of terms that are only used in posts in the apple category -- not in the orange category. (though, if a term is used in both, that should be included) I've tried...

$_GET and Wordpress

I want to add a custom php file to a wordpress to do a simple action. So far I have in my theme index.php file: <a href="myfile.php?size=md">link</a> and the php is <?php echo "hello world"; ?> <?php echo $_GET["size"]; ?> <?php echo "hello world"; ?> The link, once clicked, displays: hello world Is wordpress taking over the ...

Drupal vs Wordpress performance comparassion

Hi, in the beggining i build my site - bemcapaz.net - on Wordpress. But after having to hack the core and build lots of stuff trought direct programming I decided to move on to Drupal. Drupal besides being a CMS focused more on community websites is great for doing anything you can imagine in a really simple way, even a Blog wich was wh...

Why are my images all over sized?

Hello all, I have just setup a wordpress forum and I find that all images are just over sized, Why is this the case? http://rasaasa.com/forum/ Also how can I fix this? Thanks all ...

blog post content via url parameters (meta) in wordpress

i am trying to create an url which will set the blog post like ./wp-admin/post-new.php?post_title=title i know that post_title, content and excerpt will work for this, but i dont know how to set meta tags. i need this to create a new posting when clicking on a map (openlayers) and automaticaly set longitude and latitude in meta tags. ...

How to create wordpress like functions in PHP?

Howdy, To pass variables into functions, I do the following (as other people I'm sure): function addNums($num1, $num2) { $num1 + $num2; } addNums(2, 2); My question is how would I structure a function to act like Wordpress: wp_list_categories('title_li='); Essentially I am looking for a way to create a key/value pair in my fu...

Finding current page number in Wordpress

I have added a custom loop in my Wordpress template. WHich looks something like: <?php $args = array('category__not_in' => array($featured_cat->term_id), 'posts_per_page' => 10, 'post__not_in' => array($recent_post) ); query_posts($args); ?> For pagination to work, i guess i need to pass another arg 'paged'. And the value ...

HTTP error when uploading an image using default Flash Uploader in Wordpress

I am getting an HTTP error while uploading an image using the flash uploader, for all users except the admin user. The error is occuring even with users that have administrative priviledges. Since the admin user does not get an error I doubt is would be a directory security issue - nevertheless I recusively chmoded the uploads directory...

php script gets two ajax requests, only returns one?

I'll start from the beginning. I'm building a wordpress plugin that does double duty, in that it can be inserted in to a post via a shortcode, or added as a sidebar widget. All it does is output some js to make jquery.post requests to a local php file. The local php file makes a request to a webservice for some data. (I had to do it thi...