wordpress

Get The Category Name & Category Link Inside The Loop In WordPress

Is there a way to get the name of the category and the link to the category page separately inside the wordpress loop. I don't have the id of the category either and I wanna display images instead of category names therefore the_category() doesn't work for me. Thanks Appreciate all the answers.. ...

Could this code break wordpress?

//on some hosts the uploads directory is not automatically created //on WP auto install so we create it if (!is_dir(ABSPATH.'wp-content/uploads')) { mkdir(ABSPATH.'wp-content/uploads'); } I'm trying to troubleshoot an issue in which some people who install my WP theme get an error (no description) or a blank white screen. I'm thi...

Removing title from wp_list_categories()

I'm trying to remove/replace the title attribute on the category elements used by WordPress. I'm using WordPress 2.9.1, with the following code: <div id="categories"> <h3>Manufacturers</h3> <ul> <?php str_replace("title=\"View all posts filed under ","",wp_list_categories('use_desc_for_title=0&exclude=1,2,3,4,5&t...

Wordpress auto excerpts from post content?

I'm trying to create an auto generated post excerpt from the current page's post content using a function in my theme's header file. The post excerpt will be used as the page's meta description. Can someone give me an idea of how you might go about this once you've got the post content into a string variable? The somewhat tricky part is...

What is the shortcut path to the existing plugins folder using file_get_contents()?

My code is inside a plugin's init function and I'm trying to file_get_contents() on a file inside my plugin folder.. I'm using... file_get_contents(ABSPATH.'/wp-content/plugins/myplugin/myfile.html'); Not sure why can't I just use... file_get_contents('myfile.html'); ...

How can I make unlimited page widgets for wordpress?

I want to give the theme user an option to add unimited sidebars for any page. eg he can add a custom sidebar for About, News, Our Company pages etc.\ How can I impelement this in theme admin? ...

page redirection in wordpress

what I have: a google search form (displayed on all pages) a wordpress page to display search results what I want to do: when a search is performed, redirect to the page containing the search results how do I do this? the search results page is a wordpress-created page with a permalink domain.com/search-results ...

Help Wordpress contact form 7 issue with input widths on radio buttons?

Hi all fellow wordpressers I'd like to customize the width of the radio buttons on contact form 7. Is there a way to tell the radio buttons to be a different width to the input fields in the css. When I put a width on the input fields I don't want this to apply to the radio buttons. Thanks for all your help Regards judi ...

Wordpress Multiple Developer Setup

Is there a good option for having more than one person developing a Wordpress application with a testing site. The biggest hurdle that I have encountered are path issues when developing locally and integrating to a testing environment. Does anyone have a good process for maintaining developer environment(s), keeping working content a...

Wordpress : always display comments with articles

When displaying all articles of a specific month (given through the urls like this : ?m=200906&order=ASC, I would like to display, following each article, all comments regarding this article. In the article.php of the default theme (the one I'm using), I tried to add the following line : <?php comments_template(); ?> before the line ...

How to include the post-count of a category to link-item when listing categories?

Hello! How could I include the count of posts under a category into the a-tag when listing categories. This has been a problem for me many times but now I decided to find out. <li><a href="#" title="asd">php</a> (1)</li> to <li><a href="#" title="asd">php (1)</a></li> Is you propably assumed, I'm using wp_list_categories to make t...

Wordpress captcha in contact form 7?

Hi I'm using contact form 7 with Really Simple CAPTCHA, but it's throwing up the following validation errors. Is there a way to fix this? Or is there another plugin or can I just enter it into the html? Thanks for your help Regards Judi # Line 261, Column 84: document type does not allow element "input" here; missing one of "ins...

Facebook API need to get applications uid with only key not any logged in session

Hi, I am creating a WP facebook sidebar, basicly I have a facebook application API key and Secret Key the problem i am experincing is i need to get the UID of the applications owner using only the API KEY or Even the Secret Key... At this point in the app no user is logged in at all Is this even possible? Thanks Ricky ...

XAMPP Apache Problem

Hi! I need to use Wordpress with XAMPP for a task in a study project. I installed XAMPP, and now i'm supposed to start MySql and Apache from the Xamp Control Panel. If I start the panel, it displays: XAMPP Control Panel Version 2.5.8 (2009-07-28) XAMPP for Windows Version 1.7.3 Windows 5.1 Build 2600 Platform 2 Service Pack 3 CurrentD...

Wordpress permalinks problem

I changed my wordpress permalinks to %pagname%. Prior to doing this i posted two blog entries (the site is brand new). My static pages navigate fine after the changes but when you click on my posts you get 404'd. Has anyone else had this problem? Thanks. ...

Thumbnail wordpress plugin

Hi! I need a wordpress plugin, to generate thumbnails in my posts. I need the same size for all images in the post, for more order and space. Thanks! PS: Sorry, my english really sucks ^^ ...

Issues with 404 pages when inserting posts and changing permalink to /%postname%/

The routine below inserts a page, sets permalinks to postname then attempts to update the permalinks settings. However, when I view the newly created page, I still get a 404 error. The only way to make it go away is to hit the settings > permalinks manager (just merely accessing the page does the trick, i don't even have to save). What...

Why do my Wordpress comments have the wrong date?

Currently, every comment has the same date as the original post. Theme functions PHP: <div class="comment-meta commentmetadata"> <?php comment_author_link() ?><?php _e('&nbsp;said:&nbsp;','my-theme-here');?> <?php comment_date(__('Y.m.d','my-theme-here')) ?>&nbsp;<?php comment_time(__('H:i','my-theme-here')) ?> </div> Any thoughts? ...

Can't I have more than a certain number of redirects using htaccess?

I've registered 3 domains, all for the same site. I've done this to catch people who can't remember the right URL. So I've got: domain.com.au domain.org domain.org.au The hosting is under #1, with #2 and #3 as parked domains. I want everybody to get directed to #3 (domain.org.au) because it is a site for non-profit charity in Austr...

Wordpress: How do I get the current name of my page

If my current url is www.example.com/thank-you, how do I echo out the page name in a wordpress way. ...