wordpress

Advanced link category functionality in Wordpress

Hello! I've been fiddling around with Wordpress and I've realised that the links and link categories provide very little functionality. For example, I want to display all the links in a certain link category in one page, and not any of the other links. And in the remaining pages I want to display every link except those that have said ...

Mapping a subdomain to a Wordpress page

Any recommendations or best practices for mapping a subdomain to a Wordpress page: http://my-page.mydomain.com -> http://mydomain.com/my-page I don't want to do a redirect either, just keep the original subdomain URL until a different link is click, and then the subdomain is removed. I'm using Apache 2 with mod_rewrite, wordpress 2.7...

Facebook-WordPress comment/feedback integration

Currently I have my Facebook profile automatically republish blog posts from a WordPress instance. What I would like to be able to do, however, is to also have comments posted to either the blog of Facebook show up on the other in the appropriate location. Is there a way to do this with the Facebook API? ...

How to order categories in wordpress?

I use wp_list_categories() to get the list of all the categories and generate the navigation bar. Is there a way to order this categories in a particular order other than alphabetical ordering. eg: Connect, News & Views, Q&A, Hello Startup, Startup 101... ...

How to check if a post belongs to a category in Wordpress

I need to check if a certain post is belongs to a category or belongs to a descendant of a certain category. IS there a wordpress function for this, or I need to do it myself ? Edit: I should have mentioned that the WP version is 2.7. sorry ...

Why can Wordpress suddenly connect to the MySQL database server once I update the host from "localhost" to "mydomain.com" when I have VirtualHosts set up in Apache?

This is a specific variation on the "can't connect" problem. In my case, I've just set up two virtual hosts in my httpd.conf listening on port 80. The declaration looks like: NameVirtualHost *:80 <VirtualHost *:80> ServerName site1.dev DocumentRoot /www/site1 </VirtualHost> <VirtualHost *:80> ServerName site2.dev Do...

After upgrading Wordpress, I get a fatal error "Call to undefined function require_wp_db()"

I followed instruction as mentioned in Wordpress, but I still got the error and referred Google and I was shocked to see many blog have same problem and they are not fixed yet and those blogs are indexed in Google, please try searching "Call to undefined function require_wp_db()" or find here Google search result Any advice how to fix...

Problem porting WordPress Editor to a non-WP application

I like the look and feel of the WordPress editor (version 2.7), and I would like to use it in another web application that is written in ASP.NET. I've used TinyMCE before, and I've even extended it in the past. However, I can't seem to get the Wordpress configuration to work! I've downloaded the entire WordPress package and taken the ...

Wordpress host IP changed.

Hi, I've got a Wordpress site on our home intranet that has run into trouble now that the IP address has changed - The index page loads, but not the CSS and I can't log in to the site administration panel. Unfortunately I am a bit behind on backups. Is there a way to get Wordpress to refer to the new IP address? ...

Can you help me center a "ul" element with CSS?

I've been puzzling over something which ought to be very easy indeed, but after a fruitless three hours I've not yet solved it: A friend asked me to fix the template of his Wordpress website so that the horizontal navigation menu-bar is centered horizontally on the page. He wants it to fit snugly across the bottom-middle of the red-sect...

SEO consequences of using a subdomain for an externally-hosted blog?

Is there any SEO disadvantage in using a subdomain to host a blog on Wordpress or Blogger? I don't want to go to the trouble of creating a blog module for my site - I'd rather just set up a CNAME entry and point a subdomain to a free Wordpress or Blogger account. Will Google punish me for doing this by claiming that I have "duplicate con...

How to delete the default hello world post BEFORE Wordpress install

Hi, I install Wordpress many times and have to delete the hello world post manually after each install. This is daunting ! How can I prevent this post to appear. Same question for blogroll links. Thanks.w ...

Wordpress permalinks: only using the post_id from the URL

I'm trying to have SEO friendly URLs for my wordpress blog, while still having the flexibility to change a post's title at will. My permalink structure would be like this: %post_id%/%postname% However, I'd like wordpress to just consider the %post_id% from the URL when looking for the appropriate post (sort of like here on stackov...

custom mysql select statement for wordpress

I have developed a taxonomy for a site that I've been working on that may be abusing the categorization system of wordpress- posts are categorized both under what topics they refer to (let's say cats, dogs, monkeys) as well as what type of post it is (say, expert, organization, article). So I'd like to find all posts that are about cats...

Wordpress MU themes and Plugins

Hi, I have some X number of blogs setup in the Wordpress MU . I need to install themes for each of the blogs. How do I install themes for them? If I install in the main directory will it work for all the blogs or I need to install for each of the blogs separately as we do in the traditional Wordpress. Please let me know for plugins ...

What is the best method for creating your own Wordpress loops?

There seem to be three main ways to output content from Wordpress using its built-in functions, with WP_Query being the recommended one: WP_Query query_posts get_posts What are the differences between them? (I understand that WP_Query is the class, and the other two are methods). What is the cleanest way to have multiple loops on th...

How do I make the Preview link on a WordPress post or page point somewhere else?

I've done a lot of small projects on the side lately where the client wants a good chunk of the website to stay the same, they just want to be able to edit particular "areas" of the site. Namely, some text in some box somewhere. I've found that WordPress works for this pretty well. The interface is nice and friendly to use, and it's go...

Suggestions on how to get bbpress / wordpress username/userid from cookie

I am trying to integrate my site to use the bbpress/wordpress user system. All I need is the ability to get the User Name and/or User ID of the person currently on my site. I don't really need any other functionality from bbpress or wordpress on the site. If I could get the user's ID and then the ability to get the user's name from th...

How to put all the images in a block of text into an array, PHP?

function has_thumbnail_image(&$post) { $content = $post->post_content; return preg_match('/<img[^>]+src="(.*?)"[^>]*>/', $content, $results); } I need a function that goes through a block of dynamically returned text and puts all of the images contained within into an array (or more specifically the image source of each image). The f...

How do I get wordpress to override a previous posts query?

I've got a page that has a category list at the top, and should normally list posts below it. The category list is created using: <?php $display_categories = array(4,7,8,9,21,1); $i = 1; foreach ($display_categories as $category) { ?> <?php single_cat_title(); ?> //etc </div> <?php } ?> However, this seems to make the post loo...