All Questions

Filter by
Sorted by
Tagged with
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
460 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
310 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
781 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
19k 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
921 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: ...
105
votes
6answers
255k 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?
1
vote
4answers
275 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 ...
4
votes
3answers
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
446 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
338 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
882 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
7k 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
9k 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
883 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
887 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 ...
0
votes
1answer
476 views

Google Analytics event tracking code being stripped out of links in Author box - WordPress site

I am using Yoast's Google Analytics plugin on my WordPress site. I have enabled Event Tracking for outbound links and have successfully manually added event tracking for some other internal links. It ...
1
vote
1answer
2k views

How to auto-accept a friend-request in buddypress based on user meta

I’m still getting my head around buddypress, so far so good but I’ve hit a snag where I want certain users who are flagged as an ‘expert’ to automatically accept any friend requests people make. I’ve ...
3
votes
2answers
738 views

W3 Total Cache Plugin with WP 3 MultiUser [closed]

I'm having some strange behavior with my W3 Total Cache solution working on my multi-user Wordpress 3 installation. The multi-user is setup to use sub directories, and I'm using all types of caching ...
2
votes
1answer
7k views

Priority of Meta Box for Custom Post Type

I'm having a small issue with the custom post type entry screen. I'd like to bump up my metabox right under the content box, but I'm not sure if that's even possible (as the metaboxes in between are "...
1
vote
4answers
964 views

Load testing for WordPress functionality

Does anyone know of (or have) any scripts / processes they use for testing performance under load - especially of WordPress specific behaviours, like posting many comments nearly simultaneously, while ...
6
votes
1answer
821 views

Would switching to InnoDB from MyISAM improve performance of comments table?

A site I've built gets lots of comments in a short space of time - so perhaps 100 comments might be left in 5 or 10 minutes. This seems to cause a pretty heavy load on the database, especially when ...
0
votes
1answer
428 views

StackExchange clone using WordPress?

If you were to build a StackExchange clone site using WordPress, how would you do it?

15 30 50 per page