All Questions

Filter by
Sorted by
Tagged with
3 votes
4 answers
7k views

Forcing all posts associated with a custom post type to be private

Does anyone know of a way to add code to the functions.php file which will automatically force all posts belonging to a custom post type to be "private" and/or "password protected" with a default ...
NetConstructor.com's user avatar
2 votes
1 answer
5k views

Importing users to Buddypress with custom fields

Here's the setup: The client uses a proprietary custom-coded PHP CMS and is wanting to move to WordPress with BuddyPress. The old, custom CMS has a roster functionality, which I'm using BuddyPress ...
aendra's user avatar
  • 1,045
0 votes
2 answers
303 views

Remove Default Blogroll Links via Plugin script

I have a plugin that I use on all my new sites to set up site defaults (deletes the "hello world" post, the "about" page, the "Mr WordPress" comment, etc...) I'd like to add a routine that removes ...
Scott B's user avatar
  • 5,676
2 votes
1 answer
2k views

Take Variables Set in Functions.php and Echo Them Inside My Custom Post Template

I have the following function set up in my functions.php file to allow my custom post type "Slideshow" to work. add_action( 'the_post', 'paginate_slide' ); function paginate_slide( $post ) { ...
matt's user avatar
  • 1,652
9 votes
4 answers
13k views

Remove the Featured Image Meta Box

How can I remove the Featured Image meta box? I've tried using the remove_meta_box function and specifying the boxes ID but it doesn't seem to work like it does for the other native meta boxes. ...
matt's user avatar
  • 1,652
1 vote
1 answer
819 views

Automatic updates not working/plugins not installing

I am trying to run an automatic update from Wordpress 3.0 to 3.02. However, I get the following error message: "Unable to locate WordPress Root directory. Installation Failed" I also cannot ...
Jeff Tancil's user avatar
11 votes
5 answers
6k views

"Quick Edit" > update clears out my custom meta values

I have two custom meta fields that I've enabled for each post, scottb_customHeader and scottb_customTitle These work fine as long as I'm using the full edit feature to edit posts. However, when I ...
Scott B's user avatar
  • 5,676
0 votes
4 answers
604 views

Problems with moving my Wordpress site to another domain/server

I'm having problems moving a wordpress site from one domain to another. I've searched the site but couldn find a useful answer for my situation. Here's what i did: I made a backup of the website. ...
user avatar
2 votes
2 answers
3k views

Why does this echo values in the wrong order?

I'm sure there is a simple reason/answer for this: Why does echo 'Archive for '. the_time('Y'); give me 2010Archive for? I had expected it would give me Archive for 2010
gillespieza's user avatar
  • 1,275
1 vote
1 answer
2k views

Custom post type content using custom fields without template

When I first heard about custom post types I thought it would solve an old "problem" I have, so I was thrilled. But when I tried to setup something I couldn't achieve what I want. So I'd like to know ...
Julien N's user avatar
  • 111
3 votes
4 answers
3k views

Search and replace text across all posts

I had used the ZD Video Plugin for WP a long time, and now, since my move to WP 3.0.2, it doesn't work anymore. To embed a YouTube video using the plugin, I would just write [zdvideo]url-of-youtube-...
GPX's user avatar
  • 327
3 votes
3 answers
8k views

Which tabs widget plugin for wordpress is better? [closed]

I see there are a lot of plugins to create tabbed widget in side-bar: Fun with tabs Post 2 tabs Hybrid Tabs Wordpress Tabs Slides AmR Tab Menu Navigation Tabbed Widgets Which one is the best in ...
Brij's user avatar
  • 399
0 votes
3 answers
915 views

Add filter on html tags,attributes on specific function in wordpress

Title is little bit :S sorry :) For example,we have paginate links function that output html something like this <span class='page-numbers current'>some number</span> How can I filter ...
user1147's user avatar
  • 802
0 votes
3 answers
668 views

Customizing SERP content for WordPress Blog

I want to customize the text that appears on the SERP for the posts on my WordPress blog. I want to be able to either provide some custom text or modify the fields that appear on the SERP page, for ...
user avatar
6 votes
3 answers
5k views

Resetting comment count

Recently, I had to move to another domain and had to recreate all my MySQL tables on the enw server. I noticed that for some posts, the number of comments is doubled. Example - http://inversekarma.in/...
GPX's user avatar
  • 327
0 votes
2 answers
2k views

Replace the Post Excerpt Meta Box with a Field in My Custom Meta Box

I've got a custom meta box for a custom post type which will be the only metabox I plan to show in the main column (except the native title box). I want to move the native Expert box/field inside my ...
matt's user avatar
  • 1,652
0 votes
1 answer
522 views

Can't create a SubMenu

I have created a new WordPress blog at http://www.shanytopper.com and I have a problem. I am using a wp_nav_menu for the main menu in my website (I added the suppert to the theme myself), and it ...
user avatar
1 vote
3 answers
701 views

Insert all post IDs in new database table

I have a plugin which creates a new database table. Upon activating the plugin is there a way to insert all my posts ids into that table? Right now I'm using an action hook to immediately insert the ...
wpStudent's user avatar
  • 141
1 vote
5 answers
4k views

Custom members area (interface/design) in WordPress, is it possible and how?

Can anyone suggest tutorials or URLs where I could find information about how to create a custom members area in WP? I mean when a member is logged in I would like to show him something that is ...
chubbyk's user avatar
  • 371
0 votes
3 answers
505 views

Uknown meta entries in wp_postmeta

I'm working on a site that has been running for few years and had different maintainers so it's kind of a mess. What I found weird is a lot of entries in wp_postmeta where all the keys are numeric and ...
Matteo Riva's user avatar
0 votes
1 answer
938 views

Problem Implementing parallax in header of bp-default theme

I'm trying to implement parallax in bp-default theme's header, but facing problem .... The page getting glitches, the adminbar is centre aligned but the rest of the content of the page is getting ...
Anindya Ray's user avatar
0 votes
1 answer
184 views

How to use stack flair on my site?

I want to add stack flair on my WordPress site. How can I use that? I want to put it in the right hand side column. Can anyone help me with this?
user avatar
4 votes
2 answers
4k 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 ...
t31os's user avatar
  • 18.7k
1 vote
1 answer
119 views

Moved WP from example.com/blog to example.com, cannot add pages now

I just moved my WordPress blog from a directory up a folder and I've changed my wp-config.php by adding these 2 lines: define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'...
user avatar
2 votes
2 answers
2k views

Redirect to Post List by Taxonomy on User Selection of Taxonomy Dropdown?

(Moderator's note: The original title was "drop down taxonomy") I want to add a drop-down box filled with my custom taxonomies, so when someone selects any value, it redirects to ...
Niraj Chauhan's user avatar
2 votes
4 answers
2k views

wp_enqueue_script + how to load JS or CSS in one URL merge call?

Is there any proper wordpress way of including the JS and CSS through one merged URL? So that instead of loading in x number of separate calls for each JS asset, it can be all merged into one URL? ...
AndreLiem's user avatar
  • 121
1 vote
3 answers
1k views

Create unique page without header.php for json feed

I have two WordPress sites on separate domains. I need to expose the latest posts within a category via a json feed on one site that I have to use for the other site. I'll need to hit a "hidden" url, ...
user avatar
5 votes
1 answer
1k views

Setting up custom post type archives in WP3.1? Any luck?

I've just moved a site I'm developing to WP3.1 so that I can take advantage of and start testing some of the new features. I'm especially liking the has_archive parameter in registering custom post ...
goldenapples's user avatar
  • 9,206
2 votes
3 answers
2k views

Limit author image size

Is there a way to limit the size (dimensions) of the image a user can upload to their profile? It looks like Wordpress does do some kind of limiting as uploading a 1024x768 image the result gets ...
Davy8's user avatar
  • 185
33 votes
5 answers
28k views

Post meta vs separate database tables

When developing plugins that requires data storage, what's the pros and cons of using one method or another ? The explanation given in the codex is not detailed: Before jumping in with a whole new ...
Nassif Bourguig's user avatar
2 votes
2 answers
4k views

WP-e-Commerce and W3-Total-Cache integration problem [closed]

My shopping cart is being cached by w3 total cache. This is the expected default behaviour. The thing is I can't find an easy solution for this. I am showing my shopping cart on almost every page, so ...
Lombo's user avatar
  • 123
1 vote
1 answer
1k views

How can you handle rewrite rules for custom post types with option to filter on custom taxonomy terms?

I have seen this question but can't wrap my head around actually filtering on the taxonomy as well.. Essentially what I'm looking for is an archives page for the taxonomy such as mysite.com/movies (...
Katie S.'s user avatar
1 vote
2 answers
300 views

greatest() function returns undefined property

I'm using the mysql GREATEST() function to compare two table fields and display in a loop either one with the highest integer value. The 2 fields consist of vote scores for posts: UP or DOWN. ...
wpStudent's user avatar
  • 141
1 vote
4 answers
678 views

Widget "Save" resetting jQuery hidden fields

I have a widget plugin that I've created, that lists about 10 fieldsets. jQuery runs at the beginning and hides and fieldsets that have no values. There are also buttons that allow to "Add" and "...
Dave Hunt's user avatar
  • 1,085
2 votes
1 answer
358 views

How can I add Google ads to my home page?

Guys I know this is the stupid question but need a little help, I need to put ads on my homepage as I have on my post page: These are the ads I get on my post page (i.e single.php). I also want the ...
Niraj Chauhan's user avatar
2 votes
3 answers
1k views

Host wordpress on a subdirectory of a Rails application

I would like to know if it is possible to host a wordpress blog on the subdirectory of a rails application: For instance: I would like to have domain.com/blog instead of having my blog on a subdomain:...
mnml's user avatar
  • 123
1 vote
1 answer
268 views

Making the category & tag Description textarea bigger

Which files do i edit to make the textarea for tag & cat description bigger? Or maybe there's an easier way through functions.php to save having to do it every-time i update wp? Thanks
Carpy's user avatar
  • 310
0 votes
1 answer
770 views

need jquery help

i have a form which is displayed after every post, so i coded it in single.php, but the form is too long so i thought of putting it in jquery section, where if the user wants then he/she can click on ...
Niraj Chauhan's user avatar
3 votes
3 answers
474 views

link wordpress and stackoverflow

how do i link stackoverflow widget in wordpress to my profile in stackoverflow to show badges, reputaions ??
user avatar
0 votes
1 answer
7k views

Programming WordPress to Send an Email on Registration Form Submit?

(Moderator's note: The original title was: "submit button in wordpress.") I'd like to create a registration form to send an email. I've tried Contact Form 7 but I would like to use my own HTML <...
Niraj Chauhan's user avatar
10 votes
5 answers
431 views

Using WordPress as a CMS: Developer preferences for custom vs existing plugins

I was just wanting to gauge some general feedback on how developers use WordPress as a CMS. I've started having a few client requests for websites built on WordPress. Most of the time, they're pretty ...
user avatar
2 votes
3 answers
769 views

What are the differences in capabilities between the super-administrator and administrator?

What are the capabilities that a super-administrator has that an administrator does not have? The codex page on user capabilities does not have a list of capabilities of the super-admin. It lists ...
rsman's user avatar
  • 2,290
130 votes
4 answers
241k views

How to display SQL query that ran in query?

I have come across a function before that displayed the exact SQL code that was used. In a loop for example, but can't remember. Can anybody tell me that function?
Keith's user avatar
  • 1,546
0 votes
2 answers
107 views

How to solve this problem with my subdomain?

I have my site hosted at http://blog.rgksugan.in. I have set a subdomain in it for my blog. But after landing on my blog whatever other links I click i get the link as http://rgksugan.in/blog/...
rgksugan's user avatar
  • 185
0 votes
2 answers
108 views

Suggestions: Customizable header image and style colors that are different for each page

I'm working on a project where each page should have a custom header image and custom style colors (borders, etc). So that I don't have to be the one creating a brand new style everytime a page is ...
TerryMatula's user avatar
1 vote
1 answer
186 views

How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?

Often times, a custom theme for Wordpress will require a dynamic content that reflects a relationship to a top level page of a site. Is there a Conditional Tag that will check if the current page is ...
PNMG's user avatar
  • 1,381
0 votes
2 answers
353 views

Server B handling add_image_size() differently than Server A

I'm curious what dependencies add_image_size() has because I just copied a theme over to a new server and began adding thumbnails to custom post types only to find out that my request for hard-...
Sampson's user avatar
  • 2,939
0 votes
3 answers
2k views

Three menus - parent / child / sibling

Firstly, apologies for the terminology used here, I will try to be as descriptive as possible. I am trying to create a menu system that will achieve the following: List top level pages as one menu (...
user avatar
4 votes
2 answers
2k views

Custom Comment Types

I have created a custom post type for a sort of gallery whereby users can upload work etc. In addition to this I have taxonomies for this type such as categories, tags, colors, etc. But I want users ...
Cameron's user avatar
  • 339
3 votes
2 answers
2k views

Is it possible to filter get_adjacent_post() with tags?

I've been using get_adjacent_post() to determine the previous and next posts. How would I go about determining the next and previous links to posts matching the same tag as the current post? It seems ...
Dave's user avatar
  • 161

15 30 50 per page