2
votes
0answers
97 views
Custom Post Type vs. User Page
I'm creating a multisite network for authors and readers and I want each blog author to create a user profile.
Ideally I would do this through a customized user admin area with a bunch of added ...
2
votes
0answers
194 views
Removing the title attribute from links in the post content
When using the WYSIWYG editor to create links, and selecting an existing page or post from the selection list, those links will have a title attribute by default.
Is there a simple way of turning ...
2
votes
0answers
398 views
Hierarchical Custom Posts - Highlighting Current Post in Sub-Menu
I have created a hierarchical custom post type called events and have used wp_list_pages to list the sub-posts for each event post (See below). This navigation works great, but I cannot figure out how ...
2
votes
0answers
230 views
Customizing HTML Editor Quicktags button to open a dialog for choosing insert options
I am looking for adding custom quicktag buttons,that would allow me to display a intermediary dialog before inserting the code.
Situation
1) Clicking a quicktag button opens a dialog or thickbox ...
1
vote
0answers
11 views
Move terms from one taxonomy to another keeping the hierarchy
I am creating a custom taxonomy for the first time. I am trying to add a Location taxonomy. What I am actually trying to do is use existing categories to make them into locations.
I went into the ...
1
vote
0answers
23 views
Is there a way to use latex \cite{reference} in wordpress?
I am using QuickLatex plugin and it works great. But when I tried to cite some references using \cite{paper1}, it did not seem work.
[latexpage]
Here is a citation \cite{example}.
...
1
vote
0answers
9 views
BuddyPress: How to get forum name from $forum_id?
I am using an action hook groups_new_group_forum. Now I have $forum_id and $group_id available in the callback function. How can I get forum name or group name from the available $forum_id or ...
1
vote
0answers
38 views
Ajax : Call undefined function plugin_function() … can't call any plugin function
I use a Ajax query to show some content, but I can't use any of my plugins functions.
Javascript :
$('#load_more').click(function() {
var data = {
action: 'load_more',
id: ...
1
vote
0answers
15 views
Admin Area Custom Type Search By Meta Fields Without Title & Content
I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code:
...
1
vote
0answers
23 views
Copying Custom Meta Values from existing post to a duplicate post
I'm trying to revise an existing WP plugin BU Versions to accept different custom meta field values from items I've set-up using the Advanced Custom Fields (ACF) plugin.
BU Versions will copy over ...
1
vote
0answers
29 views
Show message in media-new.php
I'm wondering if there's a way to show a specific message when user uploads a file using the wp-admin/media-new.php script.
So far I have this:
function my_uploads_notice(){
global $pagenow;
...
1
vote
0answers
21 views
selected menu item
The template I'm working on for a client has the following pages:
Home : a custom static page that displays the content of a certain WP page, and the latest sticky posts. This is the front-page.php ...
1
vote
0answers
16 views
Constant Contact plugin forbidden error
I am developing site in local. it works fine. but when i setup that on client server in the join us form after clicking join button the following error occurred.
I am using constant contact api plugin ...
1
vote
0answers
21 views
Restrict edit, but allow preview for custom post status
I am developing a Wordpress site with Edit Flow plugin, so I can create custom post statuses to manage author and contributor posts more easily.
So I have created custom post status and I've got ...
1
vote
0answers
18 views
Multi Upload In Theme Options
I need to use the WordPress media upload on a theme options page. It needs to be able to have multiple fields on one page. I have seen a few things on the site using search but nothing recent and ...
1
vote
0answers
22 views
Watermarking Images with Wordpress with WP_Image_Editor
I really like the WP_Image_Editor class. I wanted to use it for some custom functionality I'm making, but I was wondering - Watermarking images - is there a way that I could use the objects created by ...
1
vote
0answers
91 views
Custom Registration page - prevent redirect to wp-login.php?action=register
I already have a custom login from built with the following code:
add_action('login_redirect', 'jwh_redirect_login', 10, 3);
function jwh_redirect_login($redirect_to, $url, $user) {
$url = ...
1
vote
0answers
34 views
Related Posts by Multiple Tags?
I was curious if was possible to display related posts by multiple tags.
The site I am working on has about 5 tags per post. Most posts have 1 or 2 tags in common. The related posts I'd like to show ...
1
vote
0answers
21 views
Wordpress daily cron is executing more frequently than once a day
I have a wp cron job scheduled based on what's in the options. In this case its schedule daily.
add_action('init', function(){
if( !wp_next_scheduled('product_posting_cron') ){
...
1
vote
0answers
48 views
Single page site with history.js
I'm developing a single page site that shows each page on the front page, like so:
*-----------------*
| Home |
...
1
vote
0answers
14 views
Navigation menu not being assigned Theme Location
I am setting my navigation menu up using the following snippet in my functions.php.
add_action( 'init', 'add_menus' );
function add_menus() {
register_nav_menus(
...
1
vote
0answers
25 views
How to pass url as a parameter in a add_rewrite_rule
I am building a plugin which relies on passing the url as a GET parameter. Now, I am trying to prettify the links by using rewrite rules but am stuck.
What I have now:
function ...
1
vote
0answers
23 views
Bypass nonce value while trashing a post
I want to move a post in trash but the condition is that simultaneously I need to delete some more posts. Sample Code:
jQuery(function($) {
$('#delete-action a').unbind();
$('#delete-action ...
1
vote
0answers
29 views
How to use HyperDB plugin in a existing wpmu
I am using wordpress multisite v3.5.1 in a single db called maindb. And i have also 5 blog. They are bazar(main blog), demo1, demo2, demo3 and demo4. In future i want add more blog but i want to ...
1
vote
0answers
29 views
Way to add captions to gallery images by code
I am creating posts by using wp_insert_post function. It works fine as I provide values in array required. Sometimes it is required to create a post having gallery. Without any problem, it also works ...
1
vote
0answers
30 views
Moving wp-admin folder to a different host in a multisite environment
Current Multisite setup:
first site: www.site1.com
second site: subdomain.site1.com
admin: www.site1.com/wp-admin/
I m looking to move wp-admin to a different host, which is accessed via a domain ...
1
vote
0answers
28 views
One item not showing when programmatically Generating Navigation Menu
I am programmatically generating a navigation menu with the following....
add_action( 'init', 'register_navmenus' );
function register_navmenus() {
// Check if Top menu exists and make it if not
if ...
1
vote
0answers
31 views
How do I use inline SVG in WordPress
I am trying to put in an SVG inside my post, but it seems WordPress removes the content.
e.g.
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190">
<polygon points="100,10 ...
1
vote
0answers
23 views
translation does not work for 'Home'
Using the birdtips theme, translation of messages generally works, with some minor omissions.
When I click on a page, a new line appears below the header image saying
Home >> MyPage
Now, ...
1
vote
0answers
50 views
Changing image URLs in media library
On a default wordpress install, the media library is located at:
/wp-admin/upload.php. I am trying to update the image URL to point to my CDN, not my local server.
This filter
...
1
vote
0answers
45 views
Rewriting single post url; add_rewrite_rule problem?
I have to customize single post permalink (the structure of the permalink) if posts have a certain value in a certain custom fields.
I use the filter post_link to change permalink when needed, and ...
1
vote
0answers
37 views
Wordpress Export Import Site Navigation Menu
When I do an export and import the menus get transferred but I have to set the Site Navigation Menu manualy. Obviously it's only a small detail but can I ask is this a bug or expected behaviour and is ...
1
vote
0answers
41 views
using advanced custom field to control css hover color
this is a bit challenging for me:
I am using the great Advanced Custom Field plugin on my site to create different color scheme to each of my taxonomy.
I created a field called taxonomy_color and ...
1
vote
0answers
39 views
Using window.onload with Ubermenu
I am using a plugin to place this code on specific pages. But it is not firing correctly.
Has anyone had experience working with Ubermenu, WP and jQuery? Do I have to call jQuery into my ...
1
vote
0answers
43 views
HTML added to editor when deleting shortcodes in Chrome browser
Example:
[shortcode1][/shortcode1]
[shortcode2][/shortcode2]
In the above example, using the google chrome web browser, while in visual mode in the post editor, highlight shortcode 1 by ...
1
vote
0answers
31 views
Wordpress capabilities on pending post status
I have user with contributor user role. In default if you publish article as contributor you can only view it and you can't delete or edit it. But when you submit new post for review, you can do all ...
1
vote
0answers
45 views
Am I not understanding plugins?
So I am trying to make it so that you can load a class from a child theme, theme or plugin using the following:
class AisisCore_Loader_AutoLoader{
protected static $_instance;
protected ...
1
vote
0answers
30 views
Can I create multiple instances of the BuddyPress Activity Stream with separate themes?
I'm trying to take advantage of BuddyPress 1.7's new theme independence to effectively create different pages and instances of the Activity Stream with different themes.
I can use HeadSpace (an ...
1
vote
0answers
2k views
Wordpress administrator area access disabled temporarily due to widespread brute force attacks
My wordpress site admin side return this error. 'Wordpress administrator area access disabled temporarily due to widespread brute force attacks'. Can't access the site. Any one have similar experience ...
1
vote
0answers
17 views
How to output topics and replies in bbpress as table?
I need to output the bbpress topic and reply loop in a table format. I'm having trouble finding how one might do this Are there any suggestions on how one might do this? Can this be done using ...
1
vote
0answers
37 views
Wordpress Localization and Templating
I'm using Smarty Templates for the back-end and Handlebars for the front-end for the plugin that I'm building.
It's only now that I discovered that the localization doesn't work when I declare my ...
1
vote
0answers
32 views
Loading Multiple Comments Pages via Ajax?
I have been searching Google and still haven't found any great ideas for making comments pages load via Ajax. After searching SE I found this older thread
from just a few months ago which provides a ...
1
vote
0answers
32 views
RSS feed for dynamic set of custom taxonomies terms
I've got a CPT called 'Job' and three different taxonomies associated with it: location, type (permanent/contract) and expertise.
I've got a filter on the website that allows to search for jobs of ...
1
vote
0answers
53 views
Unique key for each row in a repeater field
Is it possible to have a unique key for each sub fields in a repeater field? I don't want to use the array index, because the array index can be changed, when adding new rows between existing rows.
I ...
1
vote
0answers
38 views
How to rewrite a URL to another rewritten URL without changing the address?
Just got to the end of a site build and the client is now saying the original site URL's need to stay the same and do not want to do 301 redirects due to loss of link juice.
The structure of the site ...
1
vote
0answers
91 views
nginx varnish w3 total cache issues
I converted a few sites from Apache to nginx and it was running well for a while. I recently updated the nginx configuration regarding the new changes to W3 Total Cache rules. I also tried to clean ...
1
vote
0answers
25 views
Purpose of Adding Capability to Role But Not Grant?
I am attempting to create a custom role upon activation of my plugin. Along with that role, I wanted to add new capability to that role to access later. Now, after reading the Codex, I am totally ...
1
vote
0answers
21 views
Alternative to the filter comment_reply_link
I'm making a plugin and need to add a link to every comment on the front-end. I've used the filter comment_reply_link but that filter doesn't work when we're on the lowest level of threaded comments ...
1
vote
0answers
39 views
Getting Theme element into plugins page editor in wp admin
I'm having a hardtime integrating a theme editing element (in default page/post editor in wp-admin) into page/post editor made by the plugin BU Versions.
Basicly I need this theme element
to ...
1
vote
0answers
76 views
Walker_Nav_Menu doesn't work in wp_page_menu_args filter
I need to hide certain nav items from the menu (based on the password protection functionality) and I'm having trouble getting my custom Walker to work. In fact, I can't even get the standard ...

