wordpress

How does the walker class in Wordpress work?

Does anybody understand how the walker class in Wordpress works? What is it? How does it work? ...

how many (generic ?) class wordpress have ?

what i meant with generic is those class that create by non lead wordpress programmer. i just start reading the source code directly and encounter a class who name filereader and i use it to read stream of file. Is there any other useful class ? i would like to know so i can utilize it when work on wp ? I know this is a question spesi...

is there any way to hook a debug function into a hook such as init and retrieve every php function whose operates there ?

is there any way to hook a debug function into a hook such as init and retrieve every php function whose operates there ? what i meant with PHP function is its name ? is it possible to retrieve any php function name via php built in function ? ...

What is the best solution for a blog with e-commerce?

Hi! While there are loads of Joomla vs Wordpress posts out there, none address which is best suited to a blog with an attached online store. I anticipate having about 40 or so articles and want the full set of blogging features- tags, comments, talkback, sharing options, SEO functionality, support for ads etc. The online store will co...

Add a custom class name to Wordpress body tag?

I'd like to place a directive in my theme's functions.php file which appends a classname to the wordpress body tag. Is there a built-in API method for this? For example, my body tag code is... <body <?php if(function_exists("body_class") && !is_404()){body_class();} else echo 'class="page default"'?>> And it results in the following ...

WordPress Custom Theme & jQuery > Updating user after a save event of theme options

The script below resides in my theme's functions.php file. It is designed to show and fade an "update" div which comes on screen after each save event. Just asking if this is the best approach to take so that it only executes on save and is not constantly trying to run the jQuery... <form method="post"> <?php if ( $_REQUEST['saved']) ...

Using jQuery to find and then reformat a date string

Hello, I currently am displaying dates as follows "yyyy/mm/dd" in a wordpress blog (it needs to be input in this format because a plugin is using it to define a post expiration date). I want to use jQuery to locate all of these strings on a page (they're all in table cells) and reformat them to "mm.dd.yy" The site is: http://www.beat...

Changing paths to images in Wordpress

I recently moved a friends blog onto his new web hosts but unfortunately the images are not working. This is due to the old host having the following path for images: http://www.example.com/blog/wp-content/uploads/2009/07/imagename.jpg The new host uses a different layout and has this path for the file: http://www.example.com/wp-cont...

Post comments on a WordPress page from Android application

I need to post some text to a remote server over HTTP, this server in turn puts these comment on a Wordpress page. I am still waiting for interface details. Is it possible to post comments directly on a Wordpress page from an Android or Java application? Links to relevant documentation, tutorials etc. is appreciated. Thanks. ...

WordPress - How to know if a sidebar is empty without loading it?

I'm trying to wrap the sidebar by a DIV, and if the sidebar is empty the DIV should not be displayed But i cannot use codes like if(dynamic_sidebar(1)) { echo '<div>'; dynamic_sidebar(1); echo '</div>'; } as it will load the sidebar before the DIV if it is not empty, any ideas? ...

Wordpress Archive by Year "query_posts()" Problem

Hello, I created an Archive list (also this is my archive.php codes) on my blog and i want to show posts by years. But when i use query_posts() function for excluding some categories and limit posts then it's showing all posts not by year. For example this page is showing all posts not only posts in 2009 years. So if i summarize th...

WordPress page is listed in "Posts" but appears on site as a "Page", What gives?

I've seen this on a few sites now and its puzzling me. The page will be listed under the "Edit Posts" listing, however, when I click on "View Page" to see the live post, its being served out as a "Page". I can tell this by viewing the source and the body tag is... <body class="page page-id-37 logged-in"> If its were actually a post, ...

WordPress Custom Theme Favicon in Dashboard Menu

When you create a custom theme in WordPress, you can add a link to your theme options on the left menu in the WP dashboard. The default icon that's used next to your menu label is called generic.png and resides in the wp-admin/images directory. Anyone know how to tell WP to use my theme's custom favicon.png instead of the default? ...

wordpress plugin "gd star rating", rate from list

Hi, I have been using GD Star Rating plugin for a while now. I need my blog to allow users to rank posts, from a list of posts. I have One page which lists all posts. And I need to be able to rank each post from the list. I created a template and I am using [starrating template_id=45]. I need this, but with the posibility to rank from ...

WordPress front page (homepage) fails to redirect when static front page is set.

I have configured WordPress to display a static front page as described here: http://codex.wordpress.org/Settings_Reading_SubPanel#Reading_Settings When I save changes and try to visit my front page, my browser displays the following error: "The page isn't redirecting properly. Firefox has detected that the server is redirecting the req...

Is there a way to list all the database queries my wordpress install is making for a given event?

Using a method similar to the one described here: (http://stackoverflow.com/questions/14873/how-do-i-display-database-query-statistics-on-wordpress-site), I can see the total number of queries being made when I load a page. Now I'd like to output a list of the queries that are being made when the page loads. This would allow me to se...

How do I create a custom loop in wordpress that excludes categories listed in theme options

I have a custom loop that excludes categories using this code: query_posts(array('category__not_in' => array(2,6))); Instead of specifying the categories to exclude in the code, I'd like to be able to set the option in my custom theme options menu. The code to call the option is get_option('ex_cats');. How do I call this in my query_...

Wordpress is ignoring Unicode Chars in URL

Hi, I am using wordpress with this type of permalink: /%year%/%monthnum%/%postname%/ if I use this type of url: example.com/2010/03/तकनीक it treats this url like this example.com/2010/03/ (By ignoring unicode chars) and displays March 2010 archive list. if I use english url: example.com/2010/03/technology then it works perfectly. T...

How to check whether your code environment on Windows or on Linux or other OS

hi, right now, i code custom wordpress theme and testing it in xampp windows XP on apache server. But as long as i concern, there's no wp build-in function to identify the code environment. Is there's any PHP build-in function to identify such thing ? for the record, what i want to code need to read a directory. in my apache (in window...

.htaccess setting is not working on Google Chrome

I am using CakePHP framework, it redirect everything to the app folder using .htaccess, and then I set up a WordPress blog in /news/ folder outside of CakePHP, so I don't want everything in /news/ to be redirect, so I modify the .htaccess, and here is the final version: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / ...