I am hosting a Wordpress site at the Rackspace Cloud. The main site is written in asp.net so I have the default technology set to ASP.NET/IIS.
Php files can still be executed in this environment, however they need to end in a .php extension so the server knows how to process them.
I have found a way to add the .php extension to permal...
I need to do this for a theme:
remove_action( 'wp_head', 'rel_canonical' );
BUT I need to do that with conditional tags. The code below don't work.
if(is_page('comment'))
{
remove_action( 'wp_head', 'rel_canonical' );
}
AND I need to do this with a plugin.
I tried to hook the if statement into the function test, like this:
add...
I'm redesigning the template for a Wordpress based site which is bridged with a vBulletin forum. How can I can I get the number of online users as they are shown on the forum's pages so that I can insert them in another page? Is there some sort of API to interact with?
...
I was wondering which is the best approach to get the catgeory ID when listing the posts within a particular category. Normally, the urls look something like this : www.example.com/?cat=4 and it is pretty easy to get the id. However, I really need the urls to be routed like this www.example.com/categories/hotels . wordpress provides an e...
Ok, I've got this code that I've been using to spit out news to an application of mine. It was working until today. I've cutout all the logic in the following code to make it simpiler. But it should "WORK" Can someone help me fix this code to where it works, and is done right? I know it's hacked together ,but it didn't seem to have ...
Basically, I'm moving all my images over to s3, but will have tons of old references to old image locations on my website. Looking to rewrite anything in the wp-content/uploads/ folder to an s3 address.
Short story is I'm not very good with regular expressions, and have been at it a while already. Any advice or help would be greatly ap...
I wrote my own custom page template for my Wordpress page, now I want to change sidebar.php to insert a small menu whenever that page template is loaded.
// sidebar.php
if ( isset($event_name) ) {
// do something
}
But apparently sidebar.php doesn't recognize variable $event_name.
How do I come about solving this?
...
I've been looking at the remove_action() call, which works for some elements, but I'm not sure it works for the CSS in the header. I could manually edit the place where the CSS is loaded, but I'd rather do it through a plugin.
wp_admin_css_color
wp_admin_css
these are hooks that supposedly work, but I can't seem to figure out how use...
<?php
function getPosts($showposts,$tags, $thumb_key="thumb_300x166", $thumb_class, $thumb_width="300", $thumb_height="166") {
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('tag=$tags&showposts=$showposts');
while ($wp_query->have_posts()) {
$...
Is there a jquery plugin that enables replacing predefined phrases with links in a defined div tag. Forexample
with an array of
"global warming" -> "global warming"
"computer hardware" -> "computer hardware"
etc...
Also it will be used in a wordpress blog which jquery plugin already installed. Is there wordpress pluging that allows ...
Over the last few months I've had a gig working on a modified WordPress installation. My initial reaction to the codebase was disdain, one that I suspect many web application developers might share: it's certainly not MVC, it seems a bit hodge-podge, and it takes a bit of getting used to.
On the other hand, there's no denying that Word...
I need to add a second wysiwyg editor in wordpress page edit.
Any hint?
Thanks.
...
I'm somewhat new to this so I think there is an easy answer.
I have a function that strips the youtube id off a url. I then want to use this function 10 time per page (in the wordpress loop).
The function works great when I feed it the url within my function script tags, but when I start a new set of script tags within the loop, it do...
I have developed quite a number of sites using wordpress, many of which are not blogs and wordpress is only being used as a CMS although I am finding more and more that sites powered by wordpress are being blocked as they are categorised as "blogging/social". The sites in question are neither a blog nor social related.
Has anyone come ...
Is it possible to use the facebook connect option I am seeing on a ton of sites now, to allow the user to register for a WordPress account simply by using the Facebook Connect? Note, this will be used on a Wordpress site.
...
I'm reaching the end of my tether trying to schedule a new post through Wordpress' XMLRPC interface from Ruby.
I am creating a new Time object and filling it with my date and time, I then call .xmlschema to get a datetime string in the correct format for Wordpress' XMLRPC interface.
Unfortunately, Wordpress treats this as a string, and...
I'm trying to close FancyBox from within the iframe, but parent.$ is always undefined.
This is my iframe JavaScript:
<script type='text/javascript'
src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'>
</script>
<script type="text/javascript">
jQuery(document).ready(function($){
(function($) {
$....
hi, i'm tearing my hair out with this Wordpress problem. in a category section, i'm trying to display 5 posts on the first page and then the default number of posts (set to 6) on the 2nd and subsequent pages.
i've tried using query_posts('posts_per_page=5') on the first page but then the 2nd page displays posts 7 to 12 instead of posts ...
I'm grabbing a list of tags used on a post with the $posttags array. In this there's a special tag that I want to store separately: profile-somename.
How do I:
Find this special profile-somename tag from the list (The value after profile- is dynamic, keeps changing, somename is just an example)
Strip profile- from it and
Store in a ...
Hi, I'm running WordPress and I'd like to write a custom query that would show a monthly archive of posts based on one specific category. I used the debug mode to find out how to get a monthly archive based on all posts, select a specific category. Here are the queries:
Get montlhy archive:
SELECT YEAR(post_date) AS `year`, MONTH (post...