2
votes
2answers
4k views

How do I retrieve menu items from one level only?

The WordPress function wp_get_nav_menu_items returns my whole site's navigation nested and all. Now if i want to get the nav menu for one "level" of that nested navigation only, how do I do that?
3
votes
0answers
475 views

Plugin for sortable posts in grid [closed]

I'm looking for a plugin that will emulate this current php page: Each flower to be a post with more info. The dates to be sortable Current blooming flowers to be featured in the widget sidebar ...
0
votes
1answer
92 views

“Securing” images in WordPress

I'm generally against the practice of making images difficult to download on websites. However, we have a number of photographic contributors who grant us exclusive free access to their images. Not ...
1
vote
1answer
612 views

Restore original WP admin bar after BuddyPress install [closed]

I want to re-enable the original WP admin bar after installing BuddyPress! define( 'BP_DISABLE_ADMIN_BAR', true ); completely disables the admin bar - don't want that. This question tells us to ...
0
votes
3answers
171 views

Trouble After Update, Removing Plugin

I'm editing this site http://www.millermusicproductions.com/ currently and I updated WP 3.0.1 to 3.3.1. After updating, the page now is zoomed in compared to how it had been and I have no idea why. ...
1
vote
3answers
2k views

Multiple wp-config.php files in one home directory

It's possible to move wp-config.php up one directory level for security, i.e. into the directory above public_html (sometimes called home or a user name, depending on the web host). "You can move the ...
0
votes
1answer
443 views

wp_redirect and current_user_can issues

Put simply, I'm trying to redirect the user after clicking a 'Save Changes' button. The plugin uses custom capabilities, and so I want to check the current user has the correct capabilities before ...
1
vote
1answer
352 views

How do you categorize pages?

I am an experienced Drupal developer who is just getting stuck into Wordpress. For a selected number of pages on a new wordpress build, I need to add them into a category, then add this category ...
4
votes
3answers
453 views

WordPress function that makes HTML safe to be sent via AJAX request

What is correct way to send HTML back to an AJAX request in WordPress? I currently have this: add_action( 'wp_ajax_nopriv_get-location-info', 'sc_locations_get_location_info' ); add_action( ...
1
vote
1answer
2k views

How to loop through each user id?

The functions that I am aware of: WP_User and wp_get_current_user seem to only get the user object of the current user. As an administrator, if I want to display certain profile information in a ...
0
votes
1answer
160 views

BuddyPress Toolbar

Is there a way to call the toolbar or adminbar as you would a menu? <?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', ...
0
votes
1answer
108 views

Blackberry specific Mobile Redirect plugin? [closed]

Is there a Wordpress plugin out there, that redirects only Blackberry visitors to a very simple basic something of the site? Currently I have a responsive website, a long vertical one with ...
0
votes
1answer
342 views

How properly create a blog template for wordpress?

I imagined that it is pretty easy to do: just take everything what is in index.php. Add <?php /* Template Name: Blog */ ?> at the top and you all set, but in my case it is not working. I ...
0
votes
1answer
83 views

Don't publish/update a post when a plugin finds errors in custom fields

I have a question about how to stop processing a post when a plugin(server side) finds errors on custom fields. Basically I developed a plugin which adds and process some custom fields in the edit ...
1
vote
2answers
2k views

How to add more fields to bbPress registration form

How can I add one or more extra fields to the registration form in bbpress 2.0.2? I want to add a textarea where prospective users can write their reason for joining the forum.
0
votes
1answer
1k views

Problem running Ajax in Wordpress

FIXED I changed this: wp_enqueue_script( 'pfxconversion', plugin_dir_url( __FILE__ ) . 'function.js', array( 'jquery' ) ); wp_localize_script( 'pfxconversion', 'MyAjax', array( 'ajaxurl' => ...
3
votes
0answers
99 views

404 redirection and Google's index [closed]

I have several dead pages, which are annoyingly still indexed in Google. I've set my 404.php to redirect to my homepage using wp_redirect, however I'm worried that this will prevent Google from ...
0
votes
4answers
676 views

How to query WordPress from another application?

We're building an iOS app for BarbadosPropertyList.com. The iOS app needs to query the website and download recent listings data, including titles, datestamps, thumbnails and custom fields. We would ...
1
vote
1answer
4k views

How can I insert an image map into a Wordpress blog post?

I'm trying to insert a custom image map into a blog post, so that clicking on different parts of an image at the top of the post will lead to anchors in other parts of the post. I have generated the ...
0
votes
1answer
51 views

Preserve Search engine index while shifting to new Domain

We are in process to migrate old old domain to new domain using wordpress. this migration is happening on the same server and IP (need to confirm but still 99% sure). I have already asked same ...
0
votes
1answer
35 views

Need help with my template [closed]

I have this site here http://spillersmart.dk where it currently shows 3 videos in a row. I want it to show 5 videos instead, but can't figure out where in the code to change that. I've looked into the ...
1
vote
1answer
73 views

How to include a file for admin and 2 pages without being loaded on other parts of the site?

I need to include a file twice. once in admin, another in its component. if( is_admin() || is_the_component() ) require... But, there's a big function in the class for registering stuffs is only ...
0
votes
1answer
789 views

How do I allow http/ftp access to files I have uploaded?

I am hosting on godaddy (yes, i know - shameful - but it is a proof of concept for now) I have artifacts/installers for a mobile phone project (Windows .CAB file) and part of my build server steps ...
5
votes
5answers
7k views

Remove slug in taxonomy url

Just wondering, how can remove slugs from some URLS. I'm using a custom post type called exhibitors, and some taxonomies to define those exhibitors (eg: featured-guests, publishers etc.): Right now ...
23
votes
7answers
85k views

How to retrieve the slug of current page?

I am trying to retrieve the slug of the current wordpress page outside the loop. The title of the page returns with wp_title () but how can I get the slug? <li><a ...
10
votes
5answers
3k views

How can I add an option to the Page Template list from a Plugin?

I've been looking around for the past couple hours for a way to create a custom page template from within a plugin but haven't had any luck yet. What I am specifically trying to do is add an option ...
0
votes
1answer
101 views

How do I provide for multiple crops of the same image in a theme?

I've been working on a Wordpress theme (my first, actually) and the design includes a header image. However, the header is extremely wide and thus is really small when adapted to a phone layout. ...
2
votes
2answers
704 views

Making the Add Media Link URL into a checkbox

Hopefully it's OK asking a second question pretty much directly after the first one... I'm currently having some difficulties accomplishing this: I've been able to remove the 'Attachment Post URL' ...
44
votes
5answers
30k views

What are PHP extensions and libraries WP needs and/or uses?

Codex loosely only mentions PHP version in server requirements, however PHP can be configured in pretty wide range of excluding/including different parts. What are extensions/libraries that: are ...
2
votes
3answers
657 views

Get list of available wordpress actions

I don't think there is, but I was wondering whether anyone ran into this issue before. Is there a function (or variable) call to get all registered WP Actions and all registered WP Filters? My ...
0
votes
2answers
313 views

How to sort by most watched in X days/months

So I managed to loop my posts in a page template, ordering the posts by most viewed. The query posts string looks like this $wplover_home = new ...
0
votes
1answer
99 views

Distinguish between different widgets of the same type

I'm playing a little with wordpress widgets and I trying to do something like this: I created a sidebar and a widget to display a slider with latest posts. The jQuery loader is something like this: ...
1
vote
1answer
1k views

Exclude custom taxonomy tag from loop

I have the following code at the beginning of a loop: <?php query_posts('showposts=3&cat=84'); ?> <?php $posts = get_posts('category=84&numberposts=3&offset=0'); foreach ($posts ...
0
votes
2answers
927 views

Pending Post review notification for contributors

I've been looking around at this for solutions but strangely I can't seem to find one that appears decent - maybe I haven't looked hard enough. What I want is a notification on my dashboard when ...
1
vote
1answer
462 views

Show Sub pages excerpt+thumbnail

I'm trying to show the excerpt+thumbnail of all subpages in a specific parent; I tried a bunch of plugin but no one actually works as I need; andy advice?
7
votes
2answers
3k views

Handling front-end file uploads, considering safety and ease of use

I'm looking to adapt an existing forum-like plugin which has no facility for attaching media. The plugin works as a Custom Post Type, so it would be as "simple" as attaching an image to a post. I am ...
1
vote
3answers
2k views

Resizing image into thumbnail, small, medium and large options greyed out

I am working with WordPress 3.3.1 and cannot resize the image I am trying to add to the page as the thumbnail, small, medium and large options are greyed out. the size of the image in question is ...
-1
votes
1answer
584 views

Help with overloading the limits of CPU/RAM issue in a resseler account with wp sites

The server that I am on has these characteristics: Intel(R) Xeon(R) CPU E5506 @ 2.13GHz/24GB ddr3 CloudLinux Server release 5.7 64 bit/litespeed webserver And overall are 800 clients (in ...
0
votes
1answer
737 views

How to sort a loop after most viewed

I have a site and i'm almost done with it. It have teached me a lot about wordpress, although i'm still a noob who doesn't know anything about php or programming (besides html). I have managed to ...
0
votes
1answer
79 views

difference between methods of query

Looking in other plugins/widgets code , I usually see TWO different methods for a query : one would be : $args = array( 'numberposts' => $limit , // or, 1, or 20 ... 'exclude' ...
0
votes
1answer
292 views

Get the a specific image from the post gallery linked to post_id

Is it possible to get the second image from the gallery with the post_id? I usually work with get_the_post_thumbnail but in this case I would like to get the second image from the post gallery, so a ...
1
vote
1answer
115 views

Tidy nav menu classes except for edit-menu-item-classes and active class

I want to tidy the menu class and remove the <li> ID tags, but return the class which is added by CSS Classes (optional) and current class.
0
votes
3answers
106 views

Dynamically insert an article at the top of a taxonomy archive - or?

I'm making a directory for half a dozen sorts of venues that are located in innumerable cities in all 50 US states. My plan has been to use a custom post type for each venue type and then assign a ...
0
votes
1answer
1k views

Is there a way to rate users instead of posts?

I would like to enable ratings for individual authors on my site instead of posts, so that users can rate each other. I just want a star rating system with some text to form some sort of review. I ...
0
votes
1answer
174 views

Using str_replace on wp-admin

I'm currently having some difficulties getting this below snippet to work. The current outcome is it replaces nothing. I realize this particular question could also be solved using gettext, but I was ...
1
vote
2answers
1k views

Is there a ready-made fix to make the admin bar not obscure content?

I have a situation where the Wordpress 3 Admin Bar (which is cool and I do want to have) obscures some important information on my page. Before I start fiddling with the CSS myself (which I'm sure ...
1
vote
1answer
974 views

posts_per_page & pagination conflict

I have a custom query to display my custom post type. posts_per_page set to '5'. In admin post per page set to '10' (settings => Reading => Blog pages show at most 10 posts) My template lists 5 posts ...
10
votes
3answers
1k views

changing wp-admin/widgets.php

We want to design the widgets page in the admin panel a little differently, mainly in order to help the site administrator understand where each widget will appear in the site: For that, we need ...
0
votes
1answer
1k views

WP 3.3.1 Cant get jQuery Datepicker to work

at first i want to tell that i HAVE read the post: jQuery UI Datepicker not working already. I followed the instructions, but stll, i cant get it work. I am using WP 3.3.1 with the standard theme ...
0
votes
1answer
119 views

Stop Attachment image names from taking top level permalink

I don't know why but images uploaded to my site in posts are getting a top level permalink. So if I upload an image into a post called "Apple" then it gets an attachment page at mysite.com/apple and ...

15 30 50 per page