wordpress

Dynamically adding news to feed

Hi everyone, I'm running a Wordpress website and I have a <marquee> on the front page that runs the news. Is it possible to have it dynamically generate the news? What do I mean by that? Would it be possible to make it so that whenever a new post is made with a category of "News", it will automatically be fed into the <marquee> on the...

i have problem about PHP

//This function generates the link tag function myplugin_generatestylesheet(){ //Form the URL to the css file stored in our plugin directory $pluginURL = get_bloginfo('home').'/wp-content/plugins/myplugin/mycss.css'; //Write it to the browser echo '<link href="'.$pluginURL.'" type="text/css" rel="stylesheet" />'; } //Now we...

After Word Press Update (Latest) the Content does not appear ? how to Fix?

after updating my web site, the content does not appear but the comments appear. I disabled all the plugins but still no content appear. how can I see and solve the problem of My WordPress? http://www.dugunarabasi.com/araclarimiz/1937-cadillac-la-salle-limousine/ ...

Jwebunit and Wordpress

Hi, I'm trying to login to my website which runs on wordpress using Jwebunit. webPage.setBaseUrl("http://www.mywebsite.com"); webPage.beginAt("/wp-login.php"); webPage.setTextField("log", "myusername"); webPage.setTextField("pwd", "mypassword"); webPage.clickButton("wp-submit"); The above does not throw any errors, but the page does...

Access User Meta Data on User Registration in Wordpress

Hiya, I am attempting to carry out a few functions when a user registers on a wordpress site. I have created a module for this which carries out the following function: add_action( 'user_register', 'tml_new_user_registered' ); function tml_new_user_registered( $user_id ) { //wp_set_auth_cookie( $user_id, false, is_ssl() ); //...

Akismet alternative

Hello can somenone sugets the best free alternative to Askimet for blocking spam from coments in wordpress? thanks ...

Wordpress with Haml/Sass

Having used Haml and Sass for a few Rails side projects, I've found that they speed up my frontend development tremendously. However, I haven't found a Rails blogging platform that's as robust or familiar to clients as Wordpress, so that's still generally my go-to for projects that require a light website with basic CMS / blogging funct...

How to filter post content during publish/save routine with str_ireplace()?

I'm trying to create a function that does a text replacement on the post content when its saved (the_content). The stub function is below, but how do I obtain a reference to the post content, then return the filtered content back to the "publish_post" routine? However, my replacement is either not working and/or not passing the update...

Sexy Alert Box is not a function

Hi to everyone, my problem is a plugin called "Sexy Alert Box" when I load the page, the firebug tells me that there is a problem: $ is not a function The line with the error shows... $(document).ready(function(){ You can check the website HERE and when I try to click on "Dile a un amigo" for open the box, because the plugin is no...

Adding Lightbox to an unsupported theme in Wordpress 3.0.1

Has anyone discovered a relatively easy way to add lightbox to a theme that doesn't support it out of the box? ...

Date not showing on consecutive posts on Wordpress

Hi everyone, I have a news section that shows posts only with a category of "news". The code is shown below. The problem is, only the first news post gets a date above it. All the posts following the most recent "news post" don't have dates. Anyone have any idea why this is happening? Thanks! Amit <div id="news"> <?php ...

WP_Query + $query_vars + custom field

I have custom post type items in my theme. They represent projects in portfolio. I have a custom field checkbox that sets the option "Featured" for every single project. So, when the project is featured, it's being shown on the main page of the site. If the "Featured" checkbox is unset, the project is visible only on the portfolio page. ...

wordpress jQuery Lightbox not working on front page

I wrote a read more function for my front page that loads in a section of html from another file. When this section drops down the gallery enclosed within this section doesn't work. However, if you go to the single page article it works. I know it is something to do with this. I'm using this plugin but I'm unsure of how to fix it. D...

Strip tags from a WordPress Function

Trying to print my custom post type's taxonomy but without the link. Tried this, but doesn't seem to work, any suggestions? $text = the_terms($post->ID,'type','','',''); echo strip_tags($text); Any help would be greatly appreciated... I'm about to start punching babies. ...

Setting up Drupal and Wordpress under a single document root

I have a hosting account which provides me a folder to publish my files for my domain (say www.example.com). I have set up Drupal for www.example.com with .htaccess at the top folder to enable clean-urls for the Drupal installation. Now I want to have a Wordpress installation under www.example.com/blog/ and have clean URLs for that blog....

Wordpress Search Results - Check for custom post type

Hi, I am using the custom post types in my wordpress blog and want to have a different icon for each type of post. <?php if ( is_post_type( 'team' ) ) { echo '<img src="team.png" />';} else { echo '<img src="page.png" />'; }?> But I get following error message: Fatal error: Call to undefined function is_post_type(). Any sugge...

Variables not carrying over to included file in different directory

So, I have a Wordpress theme. In the functions.php file, I'm writing a function that looks something like this: function my_function(){ $var1 = 'apple'; $var2 = 'orange'; include get_bloginfo('stylesheet_directory').'/lib/fruits.php'; } And the fruits.php file looks like this: <?php echo "My brother's favorite fruit i...

What is wrong with this conditional statement?

Hi I am trying to have the navigation highlights determined by what category or page you are looking at using wordpress. Can someone tell me what is wrong with a statement like this: <?php if (in_category('b')){ ?> <ul> <li><a href="#">A</a></li> <li><a class="current" href="#">B</li> </ul> <?php } else { ?> <ul> <li><a class="current" ...

WordPress Plugin Development using OOP

I am a newbie in Plugin Development. So please correct me, wherever I get wrong. I have a website which needs a Players Plugin with the following needs:- An Admin controllable form for Player registration, with some details of them. A listing page where all the registered players are to be shown. Registered Players can be deleted & ...

WordPress - "tag page" additional, custom content

Hi! Please look at it here TAG page morsblog [dot] dk/tag/stranden/ For THIS TAG, I want to write some text in WordPress (it should have possibility to add defined text to any defined tag). It should look something like this: http://farblog.dk/tag/motorsav-bukser/ Is it possible to make a little plugin that make the text be shown, and...