2
votes
0answers
72 views
Continue javascript execution when errors occurs
I use the WP native function wp_enqueue_script() for all my JavaScripts loading both in WP front and back-end so it can handle duplicated calls to the same script and so on.
One of the issues is that ...
2
votes
0answers
46 views
Page Attachment Permalink Structure based on Menu Order?
I've been on a quest for the past couple of days reading up on Rewrite in WordPress but still can't seem to figure out how to accomplish this.
When using pretty links in WordPress, media attached to ...
2
votes
0answers
69 views
How to change ?lang=cn into /cn/
I'm trying to add languages to my wordpress driven website and i installed xili-languages plugin. Unfortunately it uses lang param to differentiate between languages and i rather have seen something ...
2
votes
0answers
89 views
Possible to create placeholder images in Wordpress editor that are clickable (should bring up uploader)?
Working on a project where I would like to have buttons within the actual visual editor area where the user can click on the placeholder image and it brings up the upload dialog.
I've seen that ...
2
votes
0answers
96 views
Wordpress wp_unregister_GLOBALS causing 100% Apache CPU Usage
I've been testing the Wordpress (by making about 5 requests/s) CMS, but the problem is that Apache is constantly using 100% of the CPU. Lately I've had enough of that and I've traced down a problem to ...
2
votes
0answers
78 views
WP3.5 Media Uploader - how to make it accept multiple images?
I'm wondering how to make WP3.5 media uploader return 2 or more items in attachement? It always runs once even if 2 items are selected. The code:
$('.button').on('click', function(){
var ...
2
votes
0answers
96 views
Plugin Not Working, But Only On GoDaddy Hosted site
I'm creating a plugin for a friend to log search terms on his site. It's very basic. It creates a new table to store terms entered in the search box. It converts the search term to lower case, ...
2
votes
0answers
40 views
When querying a combination of posts and other meta fields, is there a better solution than directly modifying the WHERE value?
This question is a follow up to a question I recently asked.
I've implemented what seemed to be the only solution, and it seems to work (YAY!). I just need to verify that:
This is really the only ...
2
votes
0answers
57 views
iPhone Safari full size & PC versions different
This site displays the correct logo at top left of the content in Chrome, but displays the incorrect logo in Safari on an iPhone, at full size browsing. The incorrect logo says "Dandelion". The ...
2
votes
0answers
68 views
Multisite plugin development and wp_enqueue_script
I have a plugin I'm developing. It works fine on a single site version of WordPress. It installs on a multisite version of WordPress, it appears to work on the admin pages, but when the plugin ...
2
votes
0answers
112 views
Adding dropdowns to the tinyMCE editor
I'm new to php and wordpress but I've managed to figure out both pretty easily thanks to the community, forums and blogs. I'm close to figuring out what i want to do here, but wasted hours without ...
2
votes
0answers
45 views
How do I approach removing menu items on the fly based on settings in my plugin?
I've started writing a plugin that allows the administrator to select specific pages and set them to be visible only to logged-in users; the plugin optionally applies the restriction to all child ...
2
votes
0answers
55 views
How to specify URLS for custom posts & taxonomies
I've read a few posts about this, but can't find a clear answer :(
I have a custom post type called {ondemand}
Within the custom post, I have three taxonomies {speakers} and {categories} and ...
2
votes
0answers
92 views
Custom Fields vs Separate Table
I have a client who wants to be able to upload Posts using information stored in a CSV file. I've already got this portion working.
Just recently, I changed the CSV File Uploader from pure PHP to an ...
2
votes
0answers
285 views
Get attachments (get_posts) and WP 3.5 new uploader
I'm using get_posts() to get attachments from the post and use it in the slider. The issue is new uploader doesn't have that "Gallery" tab which was perfectly suitable for this. It also seems to be ...
2
votes
0answers
43 views
Use single-site install and map entities to subdomains
Not sure if this is a pipe-dream, but I am interested in the URL rewriting capabilities (and DNS mapping) of a single-site WordPress install.
Typically in a WordPress MU setup, we'd use WordPress Mu ...
2
votes
0answers
65 views
Excluding posts from a category but only they're not in multiple categories
I am looking to exclude a category in Wordpress. I am referring to the Wordpress Codex page on wp_query but I am having the following problem:
I want to exclude posts from category 1, but if a post ...
2
votes
0answers
86 views
theme editor not showing correct index.php
I've run into a weird issue. Not a big deal, but i'm curious about the cause.
I was making a small edit to a site built by someone else; it was also temporary, so I was just using the built-in theme ...
2
votes
0answers
107 views
display only the wp_nav_menu, which has the current-menu-item
i have a problem displaying only the menu with wp_nav_menu, in which the current-menu-item is in.
Heres what i got:
function register_menus() {
register_nav_menus(
array(
'sidebar-menu' ...
2
votes
0answers
69 views
Post Link Filter Help
I Am probably being a complete tool here but I am trying to change the permalink on my custom post type to a particular category child. The code in essence works but I cannot for the life of me figure ...
2
votes
0answers
65 views
How to store foreign language characters in wordpress?
I am am building a membership site in wordpress. I have added a Notes functionality on my site where each unique user can login to the site and enter notes specific to each lesson/post. I am storing ...
2
votes
0answers
143 views
TinyMCE popup windows using WP functions
In my editor I would like to use a TinyMCE generated popup to insert in the textarea some complex shortcodes. I use the TinyMCE API to show the popup (bottom of this question). The popup is a PHP file ...
2
votes
0answers
87 views
Enforcing canonical URLs with multiple custom post types
I'm working on a project with several custom post types, where one of the post types is naturally (but not actually in the WordPress sense) the 'parent' of the others. For example, say I have a ...
2
votes
0answers
616 views
How to add to cart via AJAX Woocommerce
I have been searching for a while, this. I want to add an item via AJAX. When you add an item to a cart in Woocommerce the page reloads with the GET parameter add-to-cart="The current product ID".
I ...
2
votes
0answers
131 views
get_permalink returns default link
I hope you can help me.
So i'm using /%postname%/ as permalink structure, and my htaccess is this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /develop/sekai/
...
2
votes
0answers
222 views
comment_post_ID 0 (cannot remove from dashboard)
Ran across something a bit odd that I haven't seen before. A client has a pretty active blog and uses Akismet (paid) to protect against spam. At least once a day, they're reporting a spam comment that ...
2
votes
0answers
1k views
Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor?
This is my setup:
Wordpress: 3.4.2
qTranslate: 2.5.32
Advanced Custom Field: 3.5.1
i've also installed qTranslate extension: 1.1.1 but I don't know how/if it works...
How can I have a ...
2
votes
0answers
208 views
Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
I have a custom post type "packages" with a taxonomy "Celebrations" that has a few terms in it.
When I try to add a link to my wp nav menu through Appearance > Menus and choosing the term I want from ...
2
votes
0answers
69 views
Wordpress Network site edit missing user list?
[domain]/wp-admin/network/site-users.php?id=2 shows no users listed but there are definitely users in the blog. Where/How can I fix this?
2
votes
0answers
140 views
Change post format using custom field
I'm creating a theme using the CF Post Formats plugin. But I've run into some trouble I don't know how to solve. Here's what I want to be able to do:
Create a new standard-format post
Enter a url ...
2
votes
0answers
52 views
Jetpack: what happens to email subscribers if I access admin on a subdomain?
I am currently running my site via http on a url like domain.com. In order to continue to make use of CloudFlare's free tier of service, I want to put my admin on a subdomain like secure.domain.com ...
2
votes
0answers
263 views
WordPress MultiSite Active Directory integration and site privacy
Here's the overview of the setup:
I have a multisite installation of WordPress 3.4.2.
I've installed the Active Directory Authentication Integration plugin ...
2
votes
0answers
124 views
Custom Post Type Events Archive Grouped By Month
I'm currently trying to get my events listing code to print out headers by Month. So basically this:
October
event
event
September
event
event
etc...
Right now it just keeps echoing ...
2
votes
0answers
117 views
List posts from certain category, by tag
Basically I need to get all posts from a particular category (or multiple categories), and list them out according to their tag.
In Category X, there are the following tags, and under each tag is the ...
2
votes
0answers
56 views
Singular name Plugin localization
I'm trying to localize the singular name of a custom post type.
...
'singular_name' => __('key', 'plugindomain')
...
I created a .po and compiled it as .mo. I also loaded the translation using ...
2
votes
0answers
439 views
“Uncaught SyntaxError: Unexpected token <” in load-scripts.php
Out of curiosity, I'm implementing AJAX in saving post. I didn't know where to start until I found this Q&A. It looks something I can grab and build on. It works but something on the Wordpress ...
2
votes
0answers
66 views
Additional Option on Custom Header admin
I would like to extend the Custom Header class to include an animation feature for the header graphics. Essentially, I'd like to add another possible value for the radio button for randomization. The ...
2
votes
0answers
50 views
How to hide “Trackback” on paginated comments
My Setup:
On my Single's page I have used this comments_template('', true); to separate Trackback's & regular comments.
The Heading "Trackbacks for this post" shows up only if a post has ...
2
votes
0answers
68 views
add widgets to dashboard for easy access for clients?
I have a widget created:
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Featured Video',
'before_widget' => '',
'after_widget' => '',
...
2
votes
0answers
170 views
Multisite/network--automatic self-registration, blog setup
I am creating a WordPress Network multisite blog in a university environment. It's set up in subdirectory mode, so that each new blog appears as a subdirectory off a common domain name.
The Network ...
2
votes
0answers
599 views
Insert query inserts 2 entries, should insert 1
I've written a small posts by views plugin, well at least started one.
My tables are set up but when they are updated the code adds 2 entries into my table when a post is loaded and views are ...
2
votes
0answers
100 views
How to sort posts by last name (2nd word) on ONE category only?
I have an "author" category that is used as a list to browse multiple posts containing author biographies. I have Smart Category Ordering installed and right now it is sorted by title ascending. ...
2
votes
0answers
107 views
Change Permalink Structure for Custom Taxonomy
I have a custom taxonomy called colors, which contains the terms Red, Blue, Yellow etc.
Each post has a term of the taxonomy colors linked to it.
The default permalink structure for posts is ...
2
votes
0answers
140 views
How to put enctype=“multipart/form-data” in categories form?
I had success putting the code below to include enctype (for images) in custom post type forms, but I'm not able to use it in categories form... is this possible?
Thanks.
add_action( ...
2
votes
0answers
97 views
Wordpress with CAS+LDAP and standard WP accounts
I have a wordpress site setup with the wpCAS-w-LDAP plugin for logins. It's working perfectly except for one thing. We have some users who can't login using the CAS system since they don't have an ...
2
votes
0answers
50 views
How can I get WP to build a feed based on multiple taxonomy terms
Currently, the best way to get a feed generated for a single taxonomy term is by letting wordpress generate the content automatically:
example.com/wordpress/feed?tax_slug=term_slug
However, is ...
2
votes
0answers
54 views
Exclude Post Format from next_post and prev_post
Is there a way to exclude a specific Post Format from next_post and prev_post? I want my asides to show up in the regular list of posts on the main blog page, but when a user is navigating through ...
2
votes
0answers
100 views
Display Terms for all posts in Current Archive or Query
I am using the following code to create a list of linked terms belonging to a taxonomy.
<?php
$taxonomy = 'taxonomy_name';
$queried_term = get_query_var($taxonomy);
$terms = get_terms($taxonomy, ...
2
votes
0answers
193 views
post_content getting cut off on blank space on $wpdb->update
I am publishing the following post via xmlrpc
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><meta ...
2
votes
0answers
784 views
query_posts with a custom post type, a meta_query and sorting by post date?
I've searched the archives and found questions similar to what I need, but haven't found exactly what I want.
I've got a bunch of products that are sorted by a meta_key of country, and I'd like to be ...