Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

0
votes
1answer
388 views

Exclude current post but keep the same posts-per_page amount

Okay I have a custom loop within the main loop of the page that shows 4 posts but obviously excludes the current main post. I'll show you: <?php $my_query = new WP_Query( ...
1
vote
2answers
596 views

Creating an Archive using a Custom Taxonomy

I recently adjusted the twentyten theme to display archives in a three column grid. In doing so, it seems that the archive has lost the ability to display posts from the specified taxonomy. For ...
1
vote
1answer
2k views

WP 3.1 meta_query for multiple custom field values

I'm trying to use some conditional logic to compare custom fields in my query, but a bit stuck. How would I get all posts with ReleasedProject AND PermanentArtist set to 'true'? Here's what I have so ...
0
votes
1answer
796 views

How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?

I just upgraded from 3.0 to 3.1.2 and in the comments column under Posts in the WP Admin, this error keeps appearing for every row: Warning: number_format() expects parameter 1 to be double, ...
0
votes
1answer
523 views

How to fix these PHP Warnings with the “Feed JSON” plug-in?

I'm getting the following PHP warnings when using the WordPress plug-in "Feed JSON". Can someone tell me how to fix them? Warning: Invalid argument supplied for foreach() in ...
0
votes
1answer
437 views

Cannot upload to S3 using CDN Sync Tool

I'm trying to synchronise my files with the Amazon S3 server for distribution using CloudFront, as the CDN. I am currently having troubles syncing the files though. I've verified that the details ...
4
votes
2answers
2k views

Enabling Sessions in WordPress 3.0

Im using a wfcart in my WordPress site but for some reason on certain pages WordPress drops the session I'm wondering if there is a way to enable sessions in WordPress 3?
0
votes
2answers
157 views

custom post-type query just returns two posts

I'm making a custom activity calendar for a client here: http://arbeidshesten.com/aktivitetskalender/ The backend is a custom post type "aktiviteter", with custom fields for the date ("dato") and ...
0
votes
1answer
849 views

What would causes search to return incorrect results?

Recently our site began no longer returning correct search results. When searching it returns one result that's unrelated to the inquiry. I've turned off all plugins and reverted back to a day when I ...
0
votes
1answer
424 views

How Can I Always Display A Particular Post First Using WP_Query?

My apologies if this question has already been asked somewhere else, I searched but couldn't find anything. I am working on a tours website, there will be individual package pages that show some text, ...
0
votes
1answer
207 views

Customizing Titles on the Fly with Code

I hope this question is easy. I want to customize my theme so that the post titles are created on the fly with code. For example, I might have a post where a price changes on the page 4 times a week, ...
0
votes
1answer
554 views

Wordpress 3.1.2 Bug: add_theme_support() and video post format registering twice

Ive been experiencing a problem with the new WordPress 3.1.2 update. When i use add_theme_support(); and register an array of post formats, it registers all of them fine, but when it comes to the ...
0
votes
3answers
125 views

Odd functions.php issue in Wordpress

I'm using More Fields plugin, and when I use my functions.php to embed the custom field, I get an odd issue. The field value is followed by a "1" I use this code: //Address add_action( ...
2
votes
1answer
1k views

How to remove row-actions from pages table?

I've already found out here how to remove the row-actions from the posts table in wordpress admin. Now I'd like to do the same in the pages table. I've looked in the core files but, well, I just don't ...
0
votes
1answer
713 views

WP 3.1 & Sorting Admin Post List

I am stuck on two issues in trying to get my custom post type for events to function correctly in the admin area. 1st) I have upgraded to wordpress 3.1 after which the code (below) which was working ...
2
votes
1answer
1k views

wp-admin slow in multisite

Running Wordpress 3.1.2 (newly updated, installed as 3.0 about a year ago) with subdomain multisite & using the Sunrise domain mapping plugin. The frontend is fast, the backend (wp-admin) is very ...
1
vote
1answer
877 views

wp_nav_menu google analytics event tracking

I've got a WP3 custom menu, with a custom link in the menu, How can I add google analytics event tracking to that custom link. Thanks Alex
0
votes
1answer
108 views

After creating a new page, filling the page with structure

I looked 2 days now but I couldn't figure out how this is done: I created a new page in wordpress. This is easy. Then I see, that I can put content into the page. This is easy too. But how can I ...
0
votes
1answer
445 views

Force modified contributor role to be re-approved on edit?

I gave the Contributor role edit_published_posts capability. Contributor submits a post, Admin publishes it. Now Contributor can edit it without approval. Is there a way to force it to be re-approved ...
0
votes
1answer
268 views

How can I combine this php statement to get the results of multiple variable inputs?

This is my query, it shows the posts that have meta_key as extra1 and meta_value as test <?php $customkey1 = 'extra1'; ?> <?php $customvalue1 = 'test'; ?> <?php query_posts('meta_key=' ...
1
vote
4answers
3k views

What is causing this error? “Warning: Invalid argument”

I need urgent help figuring this out please - I've been working on a WordPress theme locally without problems, and now that I've uploaded it to the live server I'm getting this error: Warning: ...
0
votes
2answers
400 views

Site DOES NOT LOAD after 3.1 update

I recently updated my site to 3.1 and now the frontend of the site will not load. The weird thing is the admin section does load and is some what functional (sometimes the pages go blank and I have to ...
1
vote
1answer
690 views

Access post meta in future_to_publish function

Why am I having trouble accessing post meta data in a future_to_publish add action in functions.php? I have tried: function post_to_twitter() { global $post; $url = ...
0
votes
2answers
154 views

Display a specified content on a Page and all its child pages

I have a website with 5 main pages (consider them as sections), then 3-5 sub pages for each of them. I would like to display a flash banner for each section, i.e. it should display the flash banner on ...
2
votes
1answer
151 views

Is it possible to have two different previews of a post (ie. two templates for one post)?

I'm looking for a way to allow post editors to see two different previews of the posts they are writing. On the front, the same post can appear it two different sections of the website (each shows a ...
0
votes
1answer
457 views

Custom post type functions.php if statement on action

I am using developing a child theme for Woothemes' Canvas. I am trying to use functions.php in the child theme to only use actions on my custom post type. This code doesn't seem to be working: ...
0
votes
1answer
2k views

Use wp_list_categories to list parent categories from actual term

I currently have a taxonomy called wpsc_product_category. Under that taxonomy I have several terms used as sub-categories, and finally each sub-category has a number of products. I'm trying to use ...
2
votes
2answers
3k views

How do I create a featured post within a custom post type?

Do I do this exactly the same way as I would with normal posts? I use a $featured_cat global variable and pull that out. Should I do the same here? Or should I use an associated custom taxonomy? Or ...
1
vote
1answer
257 views

Is there a way to alter the order in which the plugins appear in the page?

I currently have the following plugins activated in my wordpress installation: row 1: Outbrain row 2: Subscribe via feedburner RSS/email row 3: Topsy tweet widget, FB like widget, WP-Email a ...
0
votes
1answer
141 views

How-to inspect filter-able $vars?

Note: This is more of a tutorial/wiki than a real question and should be a reference for later Questions. If you got something to add, please feel free to add an answer. Working answers get upvoted. ...
0
votes
1answer
194 views

Adding Theme File for Non-Wordpress Content

I have a third party events plugin that uses custom tables in the database. I have created a theme file (event.php) that pulls the data in based on a slug that is ideally given in the URL. I want to ...
1
vote
3answers
244 views

User Roles Not Sticking

I have added a custom user role of super_poster, basically they make 20 posts and once they hit $postlimit get auto-moved back down to contributer level, the moving down and post counting works ok, my ...
0
votes
1answer
95 views

Number of posts in the archive

How do I show 10 posts on the first page of the archive, and 20 on others (>1)? My custom post type name is "apartments". Cheers!
3
votes
1answer
548 views

Post format selector in Thematic child theme post class

I'm having a very hard time implementing post formats in my Thematic child theme. I am able to add post format theme support and add content via the big conditional statement, but the .format-video, ...
0
votes
1answer
293 views

wordpress is automatically linking plaintext email addresses

Hey guys, I'm using the latest version of wordpress (3.1.1). Is it just me, or is wordpress now automatically linking plain-text email addresses? I type jdoe@email.com as a comment and it shows up as ...
0
votes
1answer
213 views

Wordpress FLIR (Facelift Image Replacement) plugin clipping off end of text

I'm using the FLIR for Wordpress plugin (v0.8.9.2) with FancyFonts enabled. I'm running Wordpress 3.1. The problem I'm having is that it appears the plugin is cutting off a couple pixels off of the ...
-1
votes
2answers
526 views

Upgrade to 3.1.1 Fails

When doing an automatic upgrade, I get this: Downloading update from http://wordpress.org/wordpress-3.1.1.zip… Unpacking the update… Could not create directory.: /public_html Installation Failed ...
4
votes
2answers
2k views

Is it possible to change the attributes of a registered style or script before it fires?

I'd like to modify the properties of a registered style(or script - same applies) before it's been loaded. Right now i'm trying to modify a registered style just before it gets enqueued, so i can ...
2
votes
1answer
2k views

Custom post type permalinks breaking due to 3.1 bug fix

So I just updated a site to 3.1 that uses several custom post types. When I had made the site I had not noticed at the time the $post_type parameter for register_post_type has to be in all lowercase ...
2
votes
1answer
3k views

Why are images not displaying?

Server: IIS 6 WordPress version 3.1.1 Multisite using SubFolders I'm able to upload images to the server, but thumbnails and full size images do not display. If I try to edit the image, the preview ...
0
votes
1answer
1k views

the_post_thumbnail() returns nothing even though has_post_thumbnail() returns true

has_post_thumbnail seems to be working fine but the_post_thumbnail returns nothing. here is my code: if ($favorite_post_ids): foreach ($favorite_post_ids as $post_id) { $p = ...
1
vote
1answer
742 views

Custom post type and body_class: Remove “blog” class

I am using body_class(); to style different sections of a wordpress site by their body class. Page styles descend from .page-template, blog styles descend from .single-post and/or .blog etc. I have ...
1
vote
1answer
2k views

How to make condition, based on custom fields value?

So what i would like to do is order in some CSS depending on the value of a custom field. The code below just says that if there is ANY value, do X, else do nothing... <?php ...
-1
votes
2answers
140 views

Developing Themes on WordPress, Looking for Excellent Tutorials

I am a beginner at WordPress. I know html, asp, a little PHP and I'm familiar with WordPress. I want to be an WordPress expert. So far I know WordPress involves designing themes, making plugins and ...
0
votes
2answers
110 views

How to run a test WordpressMu to Wordpress3 update?

Currently I am running a wordpress MU site with ~100 blogs. It's Wordpress MU version 2.8.x Because it was so heavily used, I was asked not to update to Wordpress 3 right away. The users are ...
0
votes
1answer
647 views

How to display this meta data (an array) in form of a function (created with a custom write panel)?

I'm using the following code to create custom write panels: <?php $key = "project"; $meta_boxes = array( "project_services" => array( "name" => "project_services", ...
3
votes
3answers
2k views

Integrating plugins in themes

I could not find a thread discussing this, so starting this one. I am currently working on a rather elaborate theme for 3.1+, and by elaborate I mean that in addition to styling and regular front-end ...
0
votes
1answer
4k views

get_terms return errors

Hi when i try to get_terms(); in theme options via this code $catalogs_terms = get_terms( 'catalogs' ); $mycatalogs = array( -1 => 'Select a catalog' ); if ( $catalogs_terms ) { ...
3
votes
4answers
186 views

How to disable 3.1 “Admin Bar” via script for the admin user?

Every time I create a new site under 3.1, my first trip is to the Users > Admin User profile page to uncheck the "admin bar" checkbox. I'd like to place a script in my theme's functions.php to do ...
1
vote
0answers
341 views

Custom taxonomy permalinks and custom post types [closed]

I have set up a custom post type called "Portfolio". I have asigned this custom post type 2 taxonomies, "Clients" & "Service". The portfolio homepage URL is as follows: ...