Let us say that I have a form to search by multiple tags in wordpress.
<input type="checkbox" name="my_tags[]" value="tag1" />
<input type="checkbox" name="my_tags[]" value="tag2" />
I want to make it so that when my plugin sees that my_tags[] is set, it rewrites the request to say
mysite.com/?tag=tag1+tag2
I know to use add_quer...
I would like to put my local OS X wordpress site in my ~users/Sites/public directory, instead of the ~users/Sites so i can properly setup a capistrano deployment.
When i try this i can visit the site locally by visiting http://localhost/public and everything looks and works great but if i ever try to go to http://localhost/public/wp-a...
Hi there,
I'm trying to consolidate two WordPress installations into one WP MU install.
Basically, I have example.com/blog and example.com/microsite/blog
I'd like the microsite's blog and the /blog to both be hosted by WordPress MU. Does sunrise help me accomplish this? If not, how would I do this?
Thanks!
...
Trying to hook into the function comment_text() supplied by Wordpress API to wrap the output of every comment into a <div>...</div> container I am running into the following problem:
Without my added filter the output of comment_text() looks like this:
<p>Hello User!</p>
<p>Thank you for your comment.</p>
<p>Stefan</p>
Thats fine but...
Hi
I'm having issues with the functions.php file with variables
$prev_dept = 0;
$comment_count = 0;
$comment_index = 0;
function setCommentCount($size){
$comment_count = $size;
}
function flowhub_comment($comment, $args, $depth) {
$comment_index ++; ...
So here's the scenario, I'm building a theme that would display sub category of a parent post
for Food:
[Food]
->Hotdog
->Eggs
->Fries
for Toys:
[Toys]
->Doll
->Car
->Drums
for People:
[People]
->Mom
->Dad
->Uncle
now I don't want to display their parent category, just their subcategory (eg Doll, Car, Drums). I've looked list_cats() ...
I am trying to set up a page on a wordpress site that displays the feed for a facebook fan page. I can't seem to locate the RSS link and it seems tons of people are having the same problem. Anyone know of a way to approach this problem?
...
Strangest thing. When I activate this specific plugin, the public side of the site goes blank (nothing but a white screen with blank view source). However, when I test the site with the wordpress default theme, the plugin does not conflict and the site works fine.
The interesting thing is that I've compared the generated source (using F...
Hi,
I am trying to redirect links to domain.com/tag/* to domain.com/blog/tag/*
(where * is the actual tag name - eg music so domain.com/tag/music would redirect to domain.com/blog/tag/music)
I have been trying but I just can't wrap my head around it.
Any help would be appreciated.
Thanks
...
Is there a way to void sharing of username (based on ip address or login at same time in different location) for Wordpress? If there is a plugin just to track IP address and login time, it should be fine too. Thanks
...
Hi everyone,
I am trying to build a form in WordPress and taking advantage of all its built-in functions but I am hard pressed to find any functions that do form validation. I figure those kinds of functions have to exist in WordPress but I couldn't find any because its documentation is sparse and spread out in some respects. Would anyo...
I have buddypress working nicely on a server, however I can't display the 'members' page or any individual profile page on a local webserver install I have made.
If I try and visit /members/ I just get redirected back to the main buddypress page.
I also just noticed online members never shows whose online and the link to the default bl...
I have a script which collects an image, link and some text content from various sources. It loops through and creates a number of posts.
I'd like take each post add it to Wordpress with a Title, an image, and a link.
Can anyone suggest an easy way of doing this?
...
I want to use this function:
http://www.frankmacdonald.co.uk/php/post-to-wordpress-with-php.html
Its used to post to Wordpress using XMLRPC, can anyone give me the basics for using this function and maybe a brief over view?
I want to learn how functions work and how to use them.
EDIT:
The below guideance works like a dream.
I want...
This is really just a syntax question.
I have a PHP script that parses my WordPress feed and returns the latest posts. I also want my script to parse the # of comments, but the WordPress feed XML object for number of comments has a colon in it (slash:comments). It causes the following error:
Parse error: syntax error, unexpected
...
I am writing a wordpress plugin that redirects the user. for some reason, wp_redirect does not work as think it should, namely: it seems not to redirect the user at all, unless I put a die command in directly after. here is some code:
switch($_GET['wp_favorites_tax'])
{
case 'post_tag':
wp_redirect(add_query_arg('tag', $_GET['...
I need to modify a php search script so that it can handle multiple entries for a single field. The search engine is designed for a real estate website. The current search form allows users to search for houses by selecting a single neighborhood from a dropdown menu. Instead of a dropdown menu, I would like to use a list of checkboxes so...
Wordpress has a filter that automatically add paragraphs to posts. I can remove this by adding the followin code:
// Remove the <p> tags which WP automatically inserts in psots.
remove_filter ('the_content', 'wpautop');
The problem is that i removes <br /> tags as well.
So I'm not removing this filter at the moment. My problem is t...
Could anyone please help me? I am at the last chance saloon and losing a lot of traffic. Any help would be greatfully received.
After a year based on my permalink structure, all posts were in the root so have been picked up by Google as:
snowmenu.com/postname
Since changing my categories and permalink structure, I need the years worth...
I've got a wordpress plugin which presets several settings in a wordpress site and creates some default pages which are the same for all my sites. I would like to include an html file in my plugin zip package that is placed into the site's root directory "as is" (same file name, etc)
The file is my google verification file, which is the...