In category.php, how would I test against a category having a parent category?
If the parent category is A, and the sub-category is B, and the user loads the URL for category B, I would like to be able to test if it has parent A, and run code if it does.
I've found the get_category_parents tag, but it seems to return a link list rather...
I'm making a timeline in Wordpress, and I'm trying to make a post with the date January 12, 1800, but Wordpress doesn't allow me. Apparently, it doesn't let me post anything before the year 1970. Is there any way to fix it?
...
Hi,
Just playing around with Wordpress 3.0 for the first time. I've installed the Custom Post Type UI plugin, and have created a custom post type: "composers".
How do I go about creating a navigation menu for all the composers? Ideally, I'd like a static page entitled 'composers' which has a nav menu of all the individual composers.
I...
Hello is it possible to change "0 Comments and 0 Reactions" into "0 Comments" or just "0".
...
I have set up a couple of WordPress sites that all share the same user table (and login cookies), however as outlined in this article: http://hungred.com/how-to/multiple-wordpress-installation-sharing-user-table-touching-wordpress-core/ you get an error about not having permission to view the admin for the other sites because of the tabl...
In header.php, is there some way to detect and alert which template is displaying the current page? For example, I attempted something like:
<script type="text/javascript">
alert("<?php echo is_page_template(); ?>");
</script>
I would prefer an answer that doesn't require me to explicitly state and test each filename in that alert. Bu...
I want to change the default template hierarchy behavior, and force all subcategory level pages that don't have their own category template file to refer to their parent category template file. In my other post, Richard M. gave an excellent answer that solved the problem for an individual subcategory. Does anyone know how to abstract it?...
I have a bunch of jQuery Ajax calls on my WordPress website. After making the update to WP 3.0, I've noticed they aren't working properly anymore.
The PHP server script is getting called, because the action takes place (Ex: deleting a record in a database, which happens successfully). The issue is that the success callback isn't firin...
I have two categories that need a special template. Each has one post and will display differently. So I read that if the category is named, for example, 'testing' and the template name is 'testing.php' then it should use that correct?
Why would it not? I keep previewing the post and it just redirects to the home page.
...
I am getting this error 'Cufon' is undefined on my blog http://microreviews.org The error comes on Line 20, char1.
I also get the error 'dtsv' is undefined on Line 57 and character 3.
The errors comes only on IE7 and IE6 and no other browser. I donot really care for IE6 but the error on IE 7 is a major source of concern. What can be d...
I have make one enquiry page in wordpress, when i will post that form then it will shows 404 error, can anyone help me please.
...
Hey all,
How would I go about adding a comment section under each photo in this gallery?
(You can view an image of what I'm hoping to do here: - won't let me post a link because i'm a new member.... zhttp://www.some-things.net/storage/Picture109.p ng )
I know the iframe may not be the best way to be working this - but my friend wan...
Hi all,
I am working on a function in WP that searches the post content for any custom tags <%custom-tag%> and if it finds tries to replace the tag with a file with the same name. Everything works fine but when I use apply_filters to re-apply the content formatting WP also adds some closing tags, mostly </p> in some of the included HTML...
Does anyone know if it's possible to access a widget instance settings from a different function than widget(), update() or form() ?
For example, in the widget below I want to get the $args and $instance variables from within my_custom_function().
class test extends WP_Widget{
...
function test(){
...
}
function my_custom_...
I've run into a problem with WordPress 3.0
I preface my image files with an underscore character (_somefile.jpg) to allow me to flag them for specific uses vs images that don't have the underscore.
However, I've just found that the media uploader in WP 3.0 strips these underscores from the file name. At first I thought it was just rena...
Hi! I have downloaded a Wordpress plugin that enables facebook Connect in my site, allowing users to "comment out" and "like" the posts and photos.
As most of users are already logged in facebook when they reach our site, is it possible to let them tag their friends in the photos, and save that information so people can later see the na...
I want to create a page where i can just show the Loggedin users post and info.
...
Hi,
I am trying to make a query to get the post title, link and images of the post. I have what I need with the following query:
SELECT WPPOSTS.post_title,WPPOSTS.guid,WPPOSTS_2.image
FROM wp_posts WPPOSTS
LEFT JOIN
(
SELECT guid AS image,post_parent
FROM wp_posts
WHERE post_type = 'attachment'
ORDER BY post_date_gmt DESC
) WPPOSTS_2...
I want to get the page ID before starting the loop in Wordpress. I am using
$page = get_query_var('page_id');
But i returns nothing :(
Apparently I want to check for a page ID and add a class to <body> tag based on it.
...
Hi. I have a WP page named Book (/book/) which displays a book in various languages. The language and chapter variables
are passed as query variables. So the URL structure looks like:
/book/english/ (This displays a list of chapters in English)
/book/english/foreword/ (This displays the Foreword of the book in English)
Here is what I h...