Archive for the 'Wordpress' Category

Unable to upload new file as a product

Monday, May 7th, 2012

I’m trying to upload an XML file (RSS feed) as part of a product in the WP-Ecommerce plug-in. The idea being that a customer buying the product would be given this XML file to download which ideally launch iTunes to download the balance as part of a podcast. I can’t seem to upload the .XML [...]

mod_rewrite enabled but Permalinks show index.php

Monday, May 7th, 2012

I just installed a friends blog on my LAMP stack, which has mod_rewrite enabled (I’m using it for clean URLs on my Drupal installs on the same server). For some reason, WordPress (3.0.3) isn’t recognizing that mod_rewrite is enabled. In the Permalinks menu it’s displaying options for PATHINFO permalinks (with index.php preceding the url string). [...]

Schedule Posts to Publish from Dates/Times Pre-Set by Admin

Monday, May 7th, 2012

I have a multi-author baseball site. I want authors to be able to schedule posts to be published at one of four selected times each day. This is important because some authors write game recaps, and an auto-publish of a game recap once the following game has started is pretty worthless. I am looking for [...]

RSS Feed Custom Title?

Monday, May 7th, 2012

For some reason my RSS feed is repeating the site title twice without a space, obviously quite annoying. BlognameBlogname for example. Is there any hook i can use to have a custom title for the RSS Feed? So i could have a title ‘This is My RSS Feed for Blogname’ or anything i wanted? Is [...]

Show different size featured images (the_post_thumbnail) for 1st, 2nd and 3rd posts?

Monday, May 7th, 2012

I file all the galleries on my blog under the ‘gallery’ tag. I use the following code (via) to display the latest 7 gallery posts after the 8th latest post on home page: <!– Featured post galleries after 8th post –> <?php $homegallery++; if ($homegallery == 8){ ?> <!– Display Gallery Posts –> <div id=”gallery-posts”> [...]

Custom post type efficiency

Monday, May 7th, 2012

I want to make a custom post type with many custom meta boxes and data. Let’s say that i want to add 50 custom post variables. I see in the db that for every post meta variable a record is inserted in wp_postmeta. That said , a single post creation will result in 50 different [...]

How to avoid infinite loop in save_post callback

Monday, May 7th, 2012

I have been using this site alot for solving my problems, but this time I did not succeed in finding and answer for my problem. I get and infinite loop when using wp_update_post inside a function that is called on save_post. I know that this is a common issue, but I can’t figure out how [...]

How to remove welcome screen and its screen option checkbox?

Monday, May 7th, 2012

Clicking the screen options on dashboard, the drop down area has welcome checkbox. So even after hiding the welcome screen, if user chooses to display the welcome screen. It still shows. Is there a way to hide this option completely and turn off the welcome screen? Or otherwise, a way to remove the welcome content [...]

Media library to list images only user uploaded

Sunday, May 6th, 2012

I want to list images for only user uploaded image. Here is the scenario: Using the image uploader on front end using iframe. I have added upload_files cap to subscriber level users and want them to see only images they uploaded. I’ve found this Q Restricting Users to View Only Media Library Items They Have [...]

show posts under subcategory only when in that subcategory

Sunday, May 6th, 2012

I have a list of subcategories in a sidebar (children of top level category) and I also get a list of posts underneath each category. I only want to show those posts when we are under that subcategory or when we are viewing one of the posts. Each post comes under top level category and [...]