wordpress

add_action function in wordpress

well im learning to create a wordpress plugin i downloaded one and read the codes, and i saw this i assume 'foo' is the tag where it will add action to.. but what does the array() exactly do? add_action('foo', array('foo1', 'foo2')); i looked at http://codex.wordpress.org/Function_Reference/add_action and there is no clear definition...

List authors with gravatar and other data in wordpress?

How do I list authors with their gravatar, first namne last name and nickname in wordpress? ...

Unable to change comments form using comment_form_default_fields hook

Hi Im having trouble adding my custom fields to the default twentyten comment form. This is what im doing in the functions.php file of my child theme- am i forgetting something? // Customise comment form for garage-sales page if ( is_page('my-page') ): add_filter('comment_form_default_fields','my_comment'); function my_comment($fields)...

wordpress navigation as definition lists?

is it somehow possible to output categories as definition lists where category name would be definition titles, and all the posts as definition description? ...

WordPress Visual Editor - Indent Button and Unordered Lists

Hi, I'm using the Twenty-Ten theme and just want to know whether the indent button in the Visual Editor actually works for unordered lists b/c I can seem to get it to add inside the ul tag a padding-left of 90px? The puzzling thing about this, is that I am using Custom Page Template themes where it all seems to work fine in my "About U...

Blog platform that has built in syntax highlighting

Hi all I want to start writing some blog and I know that i will past code there so i am looking for some platform with this already built in . And that i will not need to use third party script for syntax highlighting. As I understood Blogger and Word press dont have that built in and they use syntax highlighter . The problem is th...

Can I make simplemodal contact form post across domains?

I'm using the SMCF Wordpress plugin on this site: http://fingelly.com/ As you can see it uses ajax to post the form fields to get mailed and then updates the modal. Some of the nav options at the site take you to a 3rd party IDX (real estate listings) provider. For example click on the tabs marked agents and the url changes to fingelly...

What's the most popular (easy and efficient) way of building a multilingual site in Wordpress (no need for multilingual posts)

I would like to build a multilingual site with Wordpress. Everything should be multilingual except the posts. Should I go for Gettext or does Wordpress have a "native" way of doing this? (I would also need a language switcher) ...

Is GNU gettext built in into Wordpress or do I have to download it separately?

Is GNU gettext built in into Wordpress or do I have to download it separately? ...

How do I give separate classes to the styling of the month and year in the Wordpress Date function?

I'm in wordpress, trying to format the date output. This is the code I'm using at present: <div class="date"><?php the_date('M, Y'); ?></div> It's output looks like this: MAY, 2010 What I want to do is have the date display like this (The month on top of the year): MAY 2010 I'm just not familiar enough with PHP to get things w...

Why isn't apply_filter('the_content') outputting anything?

I've tried so many combinations of php to get wordpress to output $post->post_content as formatted text (as opposed to the raw formatting that echo $post->post_content gives me. This combination seems to be the most promising, but it isn't outputting anything. Any ideas? (it's this line: <?php $content = apply_filters('the_content', $s-...

Adding a second Wordpress widget

I'm having difficulty with setting up a second sidebar for my Wordpress theme. Here's the code for function.php: <?php if(function_exists('register_sidebar')){ register_sidebar(array( 'before_widget'=>'<li>', 'after_widget'=>'</li>', 'before_title'=>'<h2>', 'after_title'=>'</h2>', )) ; } ?> <?ph...

3 WordPress Instances - is there a solution?

A website I work on is currently running three different instances of Wordpress blogs, all with their own set of users & permissions, plugins and themes. Unforauntely, I don't think Wordpress Network is a viable option due to the restrictions around where sub-blogs can be in terms of urls. Here are the url structures of each blog: ...

Need a guestbook script with a tool for moderation.

I need to create a guestbook-like page on my website. However, the server ( main site ) runs Apache and PERL but not PHP - and the sysadmins will not change this. However, I have other servers which run PHP which could be used. The form and the guestbook page just need to be on the main site server. The engine could live on one of th...

Rails: Why am I getting the wrong link on this pingback?

So I almost have a pingback sender ready for my rails app (people post links to content and donate to them). Almost. I've borrowed heavily from the code here: http://theadmin.org/articles/2007/12/04/mephisto-trackback-library/ I modified the slightly for my purposes: require 'net/http' require 'uri' class Trackback @data = { } ...

Should I change the textdomain if I'm using another theme rather than twentyten in Wordpress?

I just downloaded the Starkers Theme. I want to localize and internationalize that theme. I saw in a tutorial that I have to have the following in the funcions.php of the theme: <?php load_theme_textdomain('text_domain'); ?> But I opened functions.php of the Starkers theme and I saw this: load_theme_textdomain( 'twentyten', TEMPLAT...

Hover on specific post should show the title of only that post

I'm using Wordpress for my website. What I'm trying to achieve is that if I hover on a specific post, it should show the title of that very post. But what it does right now, is that if I hover on one post, it displays the title of all the posts. The code: <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?...

Get Wordpress to ignore subdirectory in IIS

Hi, I would like to have Wordpress ignore a specified sub-directory in IIS. Similar to mod-rewrite under Apache. Thanks! ...

PHP variable is not working in a Wordpress header and index file?

I have the following code in header.php to echo the body's id: <body id="<?php echo $body; ?>"> which is taken from a variable from index.php: $body = "home"; The output result is: body id="" Any suggestions to fix this? (I made var_dump($body) and the value is "home" so the variable is working) header.php: <?php /** * The Header ...

PHP include works on Wordpress's index.php file and not in the header.php file?

I wanted to include localization.php in header.php but it only works when I include it in index.php (see below). I thought that including it in header.php would make localization.php work in every file. (localization.php have functions that include a lang file in order to display a language). Any suggestions?? It works like this: inde...