All Questions

Filter by
Sorted by
Tagged with
20
votes
5answers
14k views

Change “Enter Title Here” help text on a custom post type

I have a custom post type created for a directory that will end up being sorted alphabetically. I will be sorting the posts in alphabetical order by title, so I want to make sure that the Title is ...
0
votes
1answer
1k views

How to get a list of child ids for a named category?

I believe I could do this with either get_categories() or wp_list_categories() and passing a 'child_of' parameter, for example, but that would return a much larger dataset than I need. Is there a ...
8
votes
4answers
16k views

Creating a metabox to upload multiple images

Is it possible to make a meta box that attaches multiple images to a post?
-1
votes
1answer
1k views

front page won't change templates

I have tried changing the template of the attached page and changing which page is attached as the home page, no effect for either. The front page remains the same. I am at my wits end with this one!!
0
votes
1answer
2k views

Add text to Text Widget using Javascript

Wordpress has a Text Widget (at least the theme I'm using does, and I think they all do?) In this widget I can add text or HTML. If I add HTML I can include JavaScript. This works fine (I'm hosting ...
0
votes
2answers
1k views

Problem with removing post tags programmatically

I use the following function in order to retrieve tags of a post, remove an element from the array and then set the result to the post: $post_tags = wp_get_post_terms( $post_id ); foreach ( $...
2
votes
5answers
10k views

Remove_filter ('the_content', 'wpautop') is not working

I've tried disabling WP's auto-paragraph thingy using remove_filter ('the_content', 'wpautop'); but I am still getting my stuff wrapped in automatic <p> tags... What am I doing wrong? Its at ...
4
votes
4answers
21k views

How to Change Loop to Order Posts by Views (using wp-postviews plugin)

I hope somebody would be kind enough to help. I currently have a page that orders all of the posts by comment count, but I want to change the loop to order the posts by view count. I have installed ...
0
votes
1answer
1k views

Sorting the Loop by Taxonomy Value

This is a similar question to Sorting for each custom taxonomy, but I don't feel like it was clearly asked or responded to. I have a custom post type "player" and a custom taxonomy "player_details". ...
0
votes
2answers
3k views

widgets in footer?

Can i use dynamic_sidebar('first-footer-widget-area'); directly in footer.php?Any change to made in functions.php page? I am using twenty ten theme.
0
votes
3answers
458 views

Blog keeps redirecting to the contact page

I just added a new contact page on my blog, and I use the Contact Form 7 plugin. For some reason, when I go to my blog now, it constantly redirects to the new contact page! I looked at .htaccess files ...
1
vote
1answer
1k views

Creating a new blog using PHP

I have a Multisite where I'm creating a user from a PHP file, using the code below: define('WP_USE_THEMES', false); require_once (dirname (dirname (__FILE__)) . '/mygroup/wp-blog-header.php'); ...
2
votes
1answer
14k views

Restricting access to files within a specific folder [duplicate]

Possible Duplicate: How to Protect Uploads, if User is not Logged In? Is there any way at all to restrict direct access to files within a specific folder to only specific wordpress users that ...
9
votes
2answers
1k views

Best way to version control WordPress template files?

The built-in ability to restore revisions of posts and pages in Wordpress is great. Is there something that gives the same power to template files in the theme-editor? Perhaps a plugin?
0
votes
1answer
309 views

Is a site with 1,500 pages, (1000 of which are E-Commerce Pages) Too Big to Migrate to WordPress?

This is my first post here, so be gentle if my question is stupid :) I have a potential client who has a site with about 1500 pages, 1000 of which are product pages for an online store. To give you a ...
0
votes
2answers
1k views

How to link to local post

I am creating a post and would like to link to other post on my blog. What is the best way to do this? I don't want to hard link in case I update the post title. Is there a way to do this?
1
vote
3answers
2k views

Redirecting user after updating profile?

I have been working around with adding stuff in user profile edit area. i am done with that but there is one thin i am unable to sort out. What i am planning to do is to redirect a user to a custom ...
3
votes
6answers
218 views

Win7 Dev Environment

I have Win7 32-bit Professional and I want to start learning to program and skin WordPress. My hosts will likely be LAMP, so I was going to run Win versions of those tools locally. Should I just get a ...
0
votes
1answer
161 views

Why aren't my Follow Me links working?

I've been working o my website and I just noticed that most of the links from my Follow Me plugin are broken. The feed link works fine, but everything else leads to a 404. I can see what's wrong ...
0
votes
2answers
1k views

How does WP generate html?

I think this must be a simple question, despite the seemingly broad title. My wordpress theme by default displays several social icons. (You can see them here, in the upper right corner.) I'm trying ...
0
votes
1answer
150 views

get postviews under every posts in the main page

i need to display under every article in the main page, the respective number of post views. I tried with a plugin called wp.postviews but I cant figure out how it's works...it allow only the widget ...
1
vote
3answers
342 views

Is it possible to create relational metabox values in a custom post?

I have a custom post type ('Model') for a sports modelling agency, and it requires the model to enter sports they are competent at, and also rank their ability from 1 to 5. For example, given the ...
0
votes
2answers
780 views

Return function only on certain pages

I'd like this function to only return on certain pages. How might i do that? // Retreats Accordion function retreats_accordion() { ?> <!-- accordion root --> <div id="accordion"> ...
2
votes
2answers
2k views

Duplicate Posts using Feedwordpress

Feedwordpress has an issue with creating duplicate posts. This duplication does not happen predictably, however, so it is hard to debug it. I need to be able to reproduce duplicating posts before I ...
3
votes
2answers
18k views

How to retrieve a value via get_option when the option_value is stored in a multi-dimensional array?

I'm trying to determine how to retrieve custom values from wp_options when the values are stored in a single options array. For example, I've got the following data in wp_options for option_value ...
0
votes
2answers
911 views

Links to plugin files not resolving

Has anyone seen an issue where links to plugin files can't be resolved and results in 404 errors? For example, I have a plugin that drops a page template into the active theme directory, and this ...
0
votes
2answers
2k views

Wordpress with user login and file manager support

This may be a RTFM kind of thing, so I'll apologize up front. I've been asked by a friend I used to freelance for if there's a solution in Wordpress where users an login, then they can upload their ...
0
votes
1answer
328 views

Why doesn't PhotoSmash plugin play well with wp_query?

I am using the PhotoSmash plugin to let users upload their own images and vote on them, and it works great. On one of my pages I use the following code to list the posts that have a certain category: ...
102
votes
6answers
247k views

How do test if a post is a custom post type?

I am looking for a way to test if a post is a custom post type. For example, in, say, the sidebar I can put in code like this: if ( is_single() ) { // Code here } I want code testing for only ...
2
votes
1answer
2k views

Custom shortcode in widget forced to top of widget

A custom shortcode i made is being forced to the top of the widget outside of the widget container. Any ideas why? This is my code... function nktmediaplayer_func($atts) { extract(shortcode_atts(...
1
vote
2answers
3k views

Saving checkbox/option list status?

my self-made admin panel works just fine, but it doesn't save values of form inputs. When I type something into textbox and click "save" it is still there after refreshing, thanks to PHP: <input ...
0
votes
3answers
2k views

How to add a “policy text” just before the comments? [closed]

Is there any plugin that can do that?
0
votes
4answers
274 views

Can you have a single set of “canonical” categories shared by all blogs?

When a site gets to a certain scale, storing categories on a per-blog basis starts to get a little messy. Assuming someone would want all WPMU blogs to share a single set of categories, how might one ...
3
votes
2answers
7k views

BuddyPress: Adding a new tab in groups

I'm trying to add a new tab to my groups on BuddyPress. All the groups will have different content preferrably from the database. How can I accomplish this?
-1
votes
1answer
380 views

feed url problem

hey hii everyone, i have a function to fetch the videos from the rss feed of youtube, so that i can display selected videos to my blog for that i am using this youtube-search-feed url http://gdata....
2
votes
1answer
1k views

How to remove parent taxonomy name from the title generated by wp_title()?

I have a custom taxonomy "Portfolio Categories", and a few these categories say "Cloth", "Shoes", ... When open some category page, i want the title to be like 'Site Name | Cloth', but with wp_title()...
5
votes
2answers
443 views

How to set configuration options for particular sub blogs?

Is it possible to set configuration options such as DEBUG mode only for specific sub blogs in a wordpress multisite installation? If so, how?
0
votes
2answers
1k views

Problem with new Multisite Installation

I have installed and converted two wordpress installations to Multisite .It was not first time and I done it before for some of my websites. I was successfully able to use it too.But I could not find ...
-1
votes
1answer
336 views

htaccess strip url

I have my permalink set to %postname%/%location%/%course% I want this permalink %location%/%course%/%postname% but due to this I get 404 on every page but not on posts, I decided to put this permalink ...
1
vote
2answers
843 views

Changing widget options via the functions.php when there are no hooks

The problem: to change a widget's options with a custom function in functions.php, when there are no useful hooks, and where there are multiple occurrences of the same widget (multiwidget). This ...
1
vote
1answer
614 views

Help display image in single post using javascript zoom image..?

Can someone helping me implement single post image with Javascript features with image zoom such i found here : http://www.housetohome.co.uk/galleries/bedroom/adult/Relaxed_country_bedroom_31391.html ...
1
vote
3answers
1k views

Code Friendly Block Quotes

I have a self-hosted Wordpress Blog (located at http://www.dougmolineux.com/wp if you're interesed :) I put a lot of Code Snippets on there, because I'm a programmer. How do I make these "snippets" ...
1
vote
1answer
6k views

How to add/save Custom Field in user settings/profile “Checkbox list”

i have been working on a custom system for my site where users can have a seperate account, setting and profile page to make my site a bit more interactive and community type. with some other ...
8
votes
3answers
8k views

How many times can I hook into the same action?

I have a theme which includes some setup, using after_setup_theme but I'd like to write my own functions which also need to run after_setup_theme. I'd prefer to keep my stuff in a separate file. Can I ...
0
votes
2answers
878 views

Custom post types - remove default post supports through empty array?

I recently asked a question the other day and got what I was looking for. Today I put that knowledge to practice, but I can't seem to figure how to remove the title and editor fields from the "edit" ...
2
votes
4answers
3k views

Grid layout “last” class to every third item

Seems like a trivial problem but I can't get it to work. I need to add class="last" to every third post. Here is my code: <?php $count = 0; $my_query = new WP_Query('cat=-18,-7&...
5
votes
1answer
2k views

Stop certain classes showing up in TinyMCE Advanced Style dropdown

I'm using the TinyMCE Advanced plugin so that I can add my own custom styles to the Style dropdown in the Visual Editor. However, I don't want some of the styles that are included in the style.css ...
0
votes
1answer
886 views

Why is the expected file not being deleted?

Can somebody tell me why this isn't working? I'm trying to get it to create a file in the plugins directory. After I get this working, I'll be trying to get this to create a file in the active theme's ...
1
vote
1answer
2k views

filter out “uncategorized” from all category listings with one filter in functions.php?

I'd like to add code to my functions.php to intercept all calls to wp_list_categories() AND the_category() so that it excludes "uncategorized" and any children of "uncategorized" (OR cat_id 1). I'd ...
1
vote
3answers
361 views

Performance on WPMS

my WPMS site is hosted on 8 cores/32mb RAM server but the response time is very high. We have about 1000 blogs (35,000+ tables on single db) and 70,000 pageviews per mounth. I think that i can down ...

15 30 50 per page