wordpress

Custom Taxonomy in URL of Custom Post Type in Wordpress 3.0

I have a custom_post_type called book. I have a custom taxonomy called color. The post is assigned green which is a value of the color taxonomy. How can I have a url that is normally like this: website.com/book/post-name Become a url like this: website.com/book/green/post-name ...

Using jQuery post() or load() within a Wordpress plugin

Hi, I am developing a plugin and have a quick question...I first developed my plugin as an individual 'webpage' and am now integrating (wrapping) it into a WP plugin. It all functioned correctly before WP and almost functions correctly now but I have run into an interesting issue. Anyways, to my question...is there some sort of issue in ...

clearing an <a> href after the page is loaded using jquery

I'm trying to slightly modify a wordpress template. At the moment a function returns a link to an article, I am trying to replace this link so that instead of diverting you to another page it just brings the article in and loads it. To do this I need to reset the anchors href after the page has loaded. This is the bit of code I am int...

Tool Choice for WordPress Creation: Visual Studio or Webmatrix?

I would like to build my first Wordpress site as quickly as possible, but I happen to lean towards Microsoft products. I don't plan on touching code/PHP to build my Wordpress site, but I should mention that I am currently an expert C# developer in Visual Studio and have built ASP.NET 1.1 in the past. So should I go with Visual Studio 2...

Does stackoverflow's pretty print engine and editor exist as plugin to wordpress?

Hi, I really like the editor and the pretty print functionality in stackoverflow and wonder if there exist a plugin in to use the editor and pretty print functionality in wordpress? The simplicity and the look is at least as good as any other plugin I tried. ...

How to extract postimage url from wordpress post?

Hey guys. So my question is just like in the title. How to extract postimage url from wordpress post? So for example if wordpress postimage() function outputs something like: <img src="some_img_url.jpg"> I'm only interested in some_img_url.jpg. ...

how to stop PHP variable being printed.

Hello All, I have this function I created to give my wordpress site a body tag... function give_body_class( $print = true ) { global $wp_query; $c = ""; // Generic semantic classes for what type of content is displayed is_archive() ? $c = 'archive_page' : null; is_date() ? $c = 'date_pag...

jQuery("#portfolioslide").data("AnythingSlider") is null

I have created a static HTML page with anythingslider to show sliding portfolio works. In that static HTML page it works just fine. Now I am trying to convert this page to a WordPress template page. At first, I just copy contents of the static main container page (excluding header and footer) and it stops working. It gives me an error jQ...

wordpress custom post type rewrite rule pagination for author

i'm using Wordpress 3.0.1 and i have made custom post-type called 'dienasgramatas'. my plugin also makes custom rewrite rules for displaying all posts from this post type and even custom permalink structure to query posts with this post type coming from defined author, but i can't create rule for pagination: the one that works: $new_ru...

Customizing the links around image attachments in posts

Hi. I am trying to customize the links that wrap each image attached to my posts. I'm currently getting something like this: <a href="http://www.example.com/images/uploads/2010/10/image.jpg"&gt; <img src="http://www.example.com/images/uploads/2010/10/image_thumb.jpg" alt="Test alt" title="image" width="630" height="541" class="alig...

wordpress widget - adding custom class?

I have a custom menu for my "main-nav" in wordpress. Using widgets I added the "main-nav" to the footer as well. My problem is that the class definitions for the two different ul are different. Main Nav 1 = the ul has a class="sfmne" Main Nav 1 = the ul has a class="menu" I would like them to have the same class name or at least hav...

Deter direct access to files (mp3) but yet allow flash player to play songs (htaccess/php)

I know it's practically impossible to not allow a user to download an mp3 file with all the various methods out there. But I'm stuck in a situation where i need to make things slightly more private/secure for my customers. Here's my problem, I'm currently using this flash mp3 player http://www.flabell.com/flash/Flash-Mp3-Player-29 to st...

In wordpress how do you write code that says "if this is a subcategory page ... display the name of the subcategory"?

I'd imagen that it would look something like this: <?php if (is_subcategory()): ?> <h1><?php the_category(); ?></h1> <?php else: ?> <h1>something else</h1> <?php endif ?> Can someone tell me how this should actually be written? ...

Problem with Wordpress permalinks and mod_rewriter

Hi there, first off...thank you so much for your time. I was referred to you guys and heard here's the best place to find a solution. Ok...so here's the problem. My old programmer set up the wordpress permalinks to be dynamic, but we all know that they are the worst to pull in traffic from search engines (specially google). So I need...

How do I make a Wordpress Page act like the default home page displaying multiple posts?

I basically want a Wordpress "Page" that acts just like the home page and loops through recent posts and displays them. How do I do this? ...

Wordpress Custom Field Output is Not Hyperlinked. Anyway to do the Same?

Hi all, I'm using wordpress custom field called company_name at the end of the post to display company name. I'm able to display the value of custom field but the output coming is not hyperlinked like wordpress categories. What I want is when visitor click on the company name wordpress should show all posts related to that company. ...

How to check if menu with specific name exists

How to check if a menu with name, for example 'topnavbar' exists in WordPress 3? ...

Advanced dynamic WordPress custom meta boxes

Hello all, I'm in the process of creating a plugin which creates several custom post types (CPT) (all of which work just fine). Some of these CPTs require a 'custom write panel' which basically means that it has a set of custom meta boxes rather than the bog-standard 'edit' box you get with your posts or pages. One of these CPTs requir...

Wordpress and FeedBurner Error

Hi, I used to use FeedSmith FeedBurner Plugin for my wordpress. Today, suddenly, my feeds are giving following errors under each Post Title. I recently upgrade to WP 3.0.1 but has been a week. Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Array' was given in /home/na...

How to create splash page in wordpress

hi, i'm looking to display splash page at the begining of site. how can i do in wordpress I have create the static home page by admin->setting->reading .. But i need to display one page before that, it will ask the user to click enter button for entering into the site Please someone help me ! ...