0
votes
1answer
3k views

Category page showing posts from all categories

I am trying to set up a category archive (editing category.php) that displays a list of posts from one single category. If I left the twentyten default code (get_template_part( 'loop', 'category' ...
0
votes
2answers
154 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 ...
3
votes
2answers
652 views

Why can't I hook into save_posts after admin_init?

I'm trying to hook into the "save_post" action from an AJAX callback in my plugin, but it doesn't seem to work. In fact, hooking into "save_posts" only seems to work from a few key action execution ...
0
votes
2answers
632 views

Recent posts per category loop?

I need a loop/plugin/widget to display latest posts from the category the user is browsing and at the same time if he visits the home page, it should show posts from all categories (not a specific ...
3
votes
1answer
1k views

Plugins error (Use roles and capabilities instead) on latest version, multisite

I have the latest, version 3.1.2 and have multisite installed. I have debug on true for testing purposes. I get the follow error when I install plugins. Where and how do I fix this? Error: ...
0
votes
2answers
540 views

Making next_posts_link(); return posts by month

I'm building a site for a magazine using WP and am needing to display a month of posts at a time. How would I make the next_posts_link(); and previous_posts_link(); functions return results, shorted ...
0
votes
1answer
330 views

Multisite ad server solution

If I am setting up a multisite WordPress installation, is there a solution that would let me manage ad inventory (multi)site wide? Can I place ads in various zones at various weights or percentages? ...
0
votes
2answers
200 views

Fantastico pros and cons

I am working with someone that has a host (internetplanners.com) that uses fantastico to install WordPress. Basically, my question is has anyone had bad experiences with fantastico or webhost ...
0
votes
1answer
925 views

Enabling Default Widgets in a Custom Theme

In custom theme development, how does one enable default built-in widgets? Note I mean default built-in widgets, not custom ones. I tried the following example for a WP 3.12 blog by placing it in my ...
3
votes
2answers
4k views

What kind of object type is WP_Query?

I am getting this error when I try to return the post_title value from my WP_Query: **Fatal error:** Cannot use object of type WP_Query as array Here is the code: $query = new WP_Query( array( ...
1
vote
1answer
440 views

Grab YouTube Thumbnail AFTER Post?

I'm using a feed to receive special YouTube feeds organized via playlists. Unfortunately, the URL is not included in the description field, but I can get the videos to display by including the source ...
1
vote
1answer
383 views

plugin-list-category-post Instructions

A basic question from a very humble and intimidated newbie. The List-Category-Post plugin looks like it will let me do exactly what I want to do, which is what the Wordpress codex calls "A page of ...
3
votes
1answer
4k views

How to assign multiple roles for capabilities array withini register_taxonomy function?

I am not sure how to add multiple capabilities to 'assign_terms' capability. My code is below, notice the capabilities array within the register_taxonomy function /* Registers taxonomies. */ ...
0
votes
1answer
189 views

Displaying Custom Posts

I came across a strange problem while working on my dev environment for a site we're making. We have custom post types, so I'm not sure if that's the reason why it's not working correctly. However, I ...
1
vote
2answers
1k views

Non “Wordpress” pages/code getting 404 error

I'm hoping that you are my saviours. There seem be lots of people with this problem on the forums, but no clear answer. Here's my predicament:- I've just put together a new Wordpress site on new ...
2
votes
1answer
602 views

How to hook get_terms() to only show count of posts that have custom meta

Here is what I have: A custom post type that has a custom meta value added to a post that stores the posts expiry date. When the post passes this expiry date it no longer shows on the site. This ...
12
votes
2answers
8k views

Explanation for apply_filters function and its variables

I'm learning how to build html forms using PHP by taking an example from "simplr form registration" plugin. I'm looking at this code: $form .= apply_filters('simplr-reg-instructions', __('Please ...
1
vote
2answers
652 views

Best way to implement a thumbnail-based gallery in Wordpress?

I need to create a gallery like this where clicking on the thumbnails loads a new image and caption in the area above the thumbnails: I always prefer to not use plugins, but in this case I think I ...
6
votes
3answers
8k views

How do you add categories to custom post types in WordPress?

I'd like to be able to have categories of a custom post type, how do you set this up? update I want to keep the default categories for regular blog posts, but a separate set of categories just CPT. ...
1
vote
2answers
438 views

How can I migrate all of my custom field thumbnails to the built-in post featured image?

I am running a theme on my Wordpress install that was built for Wordpress 2.8, prior to the time that Wordpress started using featured images for posts. I am switching to a theme that was built for ...
2
votes
1answer
6k views

How can I limit WordPress editor roles to a specific category?

We're trying to use WordPress as a light CMS system and we need to be able to section off parts of WordPress so that editors for one product aren't able to edit other products. Seems like out of the ...
4
votes
4answers
3k views

When is get_template_part() preferable to simply using the template.php files?

In this post on wordpress.stackexchange.com I asked whether using get_template_part(), as demonstrated in the TwentyTen theme, is a recommended best practice. The general consensus I got was that it ...
6
votes
10answers
6k views

Wordpress Plugin Development - Headers Already Sent Message

I'm developing Wordpress plugins. When i activate my plugin, i'm getting a message The plugin generated 293 characters of unexpected output during activation. If you notice “headers already ...
0
votes
2answers
2k views

Intercept comment form submit/list by hook/filter

I am writing a media plugin that uses custom tables to store its contents. (eg not the post tables where wordpress stores it attachment data). Now i'm looking for a way to use the default wordpress ...
1
vote
3answers
371 views

how can I make $ work in wordpress for jQuery?

I have a plugin I want to use, but it depends on the $ identifier, as apposed to using jQuery. Is it possible to enable the $, to save me recoding the plugin? EDIT The plugin automatically adds the ...
0
votes
1answer
197 views

How to apply style to the body tag of a particular page?

I have the following code: <?php if ((is_home()) OR (!is_single()) OR (!is_page('171'))) : ?> <body> <?php else: ?> <body class="last-page"> <?php endif; ?> ...
1
vote
2answers
164 views

Instructions/Rules Inside Text Area

I know it is possible to change the "Enter Title Here". But is there’s a function to add text (“how to...”, “simple rules to post...”) inside the post text/input area! Any help?
0
votes
1answer
278 views

Crop images in both sides on wordpress [duplicate]

Possible Duplicate: How can I make add_image_size() crop from the top? When generating a thumbnail or featured image the wordpress resize the smallest side and then crop the largest side. ...
1
vote
1answer
218 views

“Request has expired” with “Make your site social” (Gigya) plugin

I am using WordPress 3.0.5 and am trying to integrate the Gigya API for user registration and login. I get "Error: Request has expired" every time I try to register. With LinkedIn: With Yahoo!:
1
vote
3answers
285 views

Put standard wordpress options into a theme options panel?

I'm developing a theme for a client, and I want to allow her to change the site title, description, and her password as needed. However, I don't want to give access to all of the other options (e.g. ...
1
vote
1answer
123 views

Plugin Appends ugly url string to index

A custom background plugin has started to cause certain browsers (FF, IE8,9, Safari) to reveal an appended url string when viewing the index page: http://dearearth.net - this mostly shows when not ...
4
votes
6answers
7k views

Custom order of terms for custom taxonomy in admin and website

I have a custom taxonomy registered for my custom post type. I need to make it possible for a user to specify the order in which the taxonomy terms should appear (something like menu order for pages). ...
-1
votes
1answer
50 views

WordPress Cumulus

How to install WP-cumulus add-on into WordPress ? Thanks,
0
votes
2answers
319 views

Resizing images failing

I have recently added theme support for post_thumbnails with three new sizes, I wanted to resize all the old images uploaded previously. I have written my own script as follows: function ...
1
vote
1answer
782 views

Pagination : How to remove /page/x/ after a 'POST' action on a form returning to page 1

I have the following query, what it does is get a list of "Books" (custom post type). This list is displayed on a page which also has a small form with a dropdown populated with the terms of "Editors" ...
2
votes
2answers
102 views

Should I use Custom Post Types or something else

In my new custom theme I want my user to be able to add a 'customer testimony'. All I need for each entry is a plain text area for the content of the testimony and a text input for the author of the ...
0
votes
2answers
538 views

How to display sticky post with custom html

I'd like to display 9 posts and be able to insert a sticky post with its custom html template in between 4th & 5th post. Currently the sticky post gets displayed in both the "sticky container" and ...
1
vote
1answer
156 views

Multisite installation on an existing single installation

How to create a blog in a sibling directory of an already installed WordPress directory? The domain is example.com and there is an existing installation in blog directory and the root directory at ...
0
votes
1answer
275 views

Countdown Widget

Can someone recommend me a nice countdown widget plugin for Wordpress? I've been using the Countdown widget under Blogger and it's exactly what I need. A simple number from now until date or from ...
0
votes
1answer
617 views

Error when adding custom taxonomy to wp nav menu

I have the plugin CustomPress from wpmudev. I know longer have my membership there as it was just to pricey. I am also using there theme wpmu_dixi with some of my own customizations and tweaks. None ...
0
votes
1answer
380 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
2k views

Buddypress send admin notification email when new subscriber registers

I am running a Buddypress site, but I am not getting emails when a new subscriber registers. I have used a code in my functions.php that removes the activation email the user would receive (I want ...
1
vote
1answer
797 views

Enqueue Style for a page/pages only

it is causing problem because i did not do it before. I am trying to enqueue style or may be scripts depending on page. But it not working. Here is the code: add_action('init', 'my_enqueue_styles'); ...
0
votes
3answers
85 views

I'm a super admin and I want to give an admin the ability to add new users…?

How can I do that? So far the admin can only add exisiting users.
0
votes
2answers
2k views

WP E-Commerce WPEC 3.8 Sort Categories

I'm running Wordpress 3.1, with the WP E-commerce plugin (3.8.2) with Gold Cart 2.9.1. I posted this question a while back on the getshopped.org forum, with no solution unfortunately... I have a list ...
3
votes
1answer
1k views

How can I get my Custom Post Types to appear in nav-menus.php 'Menu'?

I am having a bit of a problem with my custom post types. I can create them fine in my theme, but I cannot get them to show up in the 'Menu' screen ... at least not by default. I have tried adding ...
10
votes
2answers
2k views

How to add field for new site-wide option on Network Settings screen?

I'm working on a plugin, and part of it involves setting an option value that applies to all sites in a WordPress network. I know about the add_site_option and get_site_option functions that let you ...
1
vote
1answer
102 views

Wordpress plugin for real estate that scales? [closed]

Anyone have recommendations for wordpress plugins that can scale easily and integrates with Wordpress' new custom post types? Not interested in themes as discussed here: Real Estate website with Word ...
2
votes
2answers
264 views

How do I use the control callback when creating a simple dashboard plugin

On this page: http://codex.wordpress.org/Function_Reference/wp_add_dashboard_widget The function wp_add_dashboard_widget is described. It states: wp_add_dashboard_widget($widget_id, $widget_name, ...
2
votes
2answers
1k views

Ideal WP multisite server setup for up to 1000 sites?

I plan to host up to 1000 sites for a large non-profit. Each site could get quite a bit of traffic. What is the ideal setup? VPS, *ngix, mem-cache etc?

15 30 50 per page