wordpress

How can I have wordpress print posts whose IDs appear in an array?

I have an array of post IDs contained in $postarray. I would like to print the posts corresponding to these IDs in Wordpress. The code I am using is as follows: query_posts(array('post__in' => $postarray)); if (have_posts()) : while (have_posts()) : the_post(); the_title(); the_excerpt(); endwhile; endif; Desp...

Plan for building xml file containing custom designed blog posts/comments for import into WordPress via Clojure

I'm trying to migrate from a custom designed blog software system to a WordPress.com site. I can access my MySQL database of posts and comments without too much difficulty, thanks in part to this post: http://stackoverflow.com/questions/613929/how-do-i-connect-to-a-mysql-database-from-clojure. I think my next step is to generate the ps...

Check Joomla Login From Wordpress Blog

Hi We have a Joomla 1.5 site with a blog in a subfolder /blog/ We would like to have a login status at the top of each page. For consistency of navigation we want to show the joomla login status at the top of the wordpress blog. eg Login | Register | Help or You are loged in as stephen baugh | Help The problem is that although th...

Center block element in element

I'm trying to center a block element (the WordPress caption box, including the image) but it won't work. I've tried: .imagecenter { margin-left: auto; margin-right: auto; display: block; } But it just won't work. I've also tried margin-left: auto; margin-right: auto; but that won't work either. Is there anything I'm doing wro...

Getting Wordpress navigation inside another page

I'd like to only get the worddpress navigation (header, navigation menu, footer) so I can add custom pages to the site which can easily integrate in the general template of the side while showing other things in the center instead of blog postings? Edit: To clarify, I'd either like to know if there's an easy way to include the function...

How can I debug PHP in IIS?

I'm starting to move some sites to WordPress hosted in IIS7 using PHP 5.3 & FastCGI. I'm quickly finding that while the core of WordPress seems to work just fine out of the box, there are a number of plugins that have issues running in IIS and I'd like to be able to debug them, fix them, and submit patches. The only solution I've found ...

WORDPRESS: Hacking Comment Form to act like Tell a Friend

I have a client that is using WP for a CMS. He wants un-registered users to be able to submit content. It's a form that has the following fields: Your name Your email Friend's name Friend's email Message Submit Then the message would be posted on the site (as a comment) and that message/comment would then be emailed to the Friend's ema...

Help with Regex - Wordpress (search-regex)

My first attempt using RE has me stuck. I'm using Regex on a Wordpress website via the Search-Regex Plugin and need to match on a specific " buried within a bunch of html code. HTML example: provide brand-strengthening efforts for the 10-school conference.&#0160; </p> <p> <a href="http://www.learfield.com/oldblog/.a/6a00d8345233fa6...

wordpress- have a specific type of "page/post" as "testimony". Possible? If so, how?

I'm implementing our school's website using Wordpress as CMS. So far, it works well and i'm 80% done. Our website is basically 11 wordpress pages and a blog. Now, there is one feature i'm not sure how to resolve. We want to have "testimonies" of past students to be displayed across wordpress pages, in a specific area of the page. They w...

Wordpress order/sort problem

Hi, The Problem: I would like to sort my posts based on custom fields, when the user clicks on a link. I don't know if there is a parameter that can be passed via url to reorder posts. Comparison: I would like it to work similar to how you can sort songs in iTunes. The user simply clicks the "Artist" button and the songs are reorder al...

how to grab my wordpress posts from different subdomain?

I have my blog on blog.mydomain.com and I am realizing that I want to be able to grab entries and put in a section on my www.mydomain.com Is there a way to do that? Perhaps a widget or plugin? ...

Wordpress Theme Demo

Hey how do I showcase my themes like WooThemes has done. I don't want to use multiple databases and Wordpress installations? Can you suggest me any reliable solution which lets me use the same database for all themes. Thanks ...

Possible to use different templates for different countries

is it possible to use different templates for different countries, i use WP but can't get much support from their forums. I have a site for Baby Rockers And i get traffic from different countries, is it possible to say have a china visitor see a different template with Chinese writing rather than them having to use google translator. ...

Add Lightbox Effect to NextGen Gallery Wordpress

Just can't seem to figure it out. How can I turn the lightbox effect on while using the Wordpress NextGen Gallery Plugin? ...

Archive Template in Wordpress

Hello, I want to create an archive page template for Wordpress that will look like this: August 2009 Post 4 Post 3 Post 2 Post 1 July 2009 Post 2 Post 1 So, basically, I want all the posts from the blog, ordered descending by date and grouped by month. Can someone provide me the PHP code for this? Thanks! PS: Wordpress versio...

adding single.php page to wordpress or if condition for main page or post detail page...

Hi friends, I use Barecity Theme for WordPress. i built everything, but now i need to add a single.php file to theme. now it displays all post content at homepage, I created a short_desc Custom Field. and I call it from code with; <?php //get_post_meta($post->ID, 'short_desc', true); ?> it is fine. but i need to display this short de...

getting data from wordpress database to use at out of wordpress...

hi friends, I set up a wordpress, everything is fine. it is under a sub-directory of main website. and it use same database with the custom developed website. path is like below; http://www.blabla.com/blog/blabla-category-name/bla-post-title/ i need to list the latest 3 posts at main website (out of wordpress). I looked wordpress db,...

Use phpBB credentials for a blog

Is there any way to setup a Wordpress blog (or any other blog system) and let users use the same credentials used in a phpBB forum...a sort of database sharing. ...

Wordpress blog page

Quick question (quick deadline...I know I can use google). I'm writing a site on Wordpress w/ a static home page, it has a few pages--I want the 'blog' page to show the wp entries...what's the best way to set this up. Right now I have a static template for each page (with content rendered), but of course, the blog page doesn't show the...

How do I get the parent category name in wordpress template? And can I query post by the parent category?

I tried getting help on the wordpress forums but no luck. Anyways, heres my question... Lets say i am creating 10 parent categories and 2 sub categories to each parent. My wordpress post belongs to one sub category of a particular parent category How do i get the parent category name ONLY? i don't want subcategories names? what wordpre...