2
votes
0answers
221 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
493 views

I want to load post content by categories using Ajax

I have question. I would like to load post content, custom post, depends on category. So first of all I would like to have drop down menu which will list all my categories then once user will select ...
2
votes
0answers
142 views

HTTP Error when uploading images

I am getting an 'HTTP Error' when uploading images to posts. What could be the reason for this? It doesn't happen all the time, sometimes I get the error, try again, and the file uploads. Actually the ...
2
votes
0answers
89 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
207 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
294 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
1k 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 ...
2
votes
0answers
244 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 off ...
2
votes
0answers
557 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 ...
1
vote
0answers
22 views

What are all these spam subscribers doing here?

We look after a bunch of WordPress sites none of which run themes which involve public participation. So basically the setting Membership - anyone can register is always turned off. I have just taken ...
1
vote
0answers
28 views

Rendering the uploaded file in a wp.media object

I have seen this question asked a few times on SO and I don't see any responses. I have a wp.media object (upload dialog), that I am using in to store an upload to a post as a meta element. It works ...
1
vote
0answers
9 views

Redirect user using the 'wp_login_failed' action hook if the error is 'empty_username' or 'empty_password'

Background I'm attempting to make a seemless frontend login for a blog, while still leaving wp-login.php available to those users who know how to get there. wp-login.php is also required to ...
1
vote
0answers
26 views

Add / Update Custom Fields After Select Pictures in Media Window

I just added a button called Add Slider in Add/Edit Post Page. Here's my code in my functions.php : //Add button to create slider add_action('media_buttons','add_my_media_button',15); function ...
1
vote
0answers
22 views

Should I be able to run two different “close” code versions of wordpress with the same DB

A concrete example - I am upgrading to 4.1 from 4.0, the upgrade was successful but I discovered that a plugin broke. Can I just revert the code. The real live issue I am facing is having two ...
1
vote
0answers
15 views

Unique registration for new writers to sign up

I want to be able to sign up writers by sending them an email with a unique registration url (that maybe is valid for only a limited time). Overall though, I don't want anyone to be able to register. ...
1
vote
0answers
7 views

Password Reset for Users on a Multisite Subsite

I have a multisite network. I want my users to be able to reset their passwords while staying within their subsites. So for example clicking the "lost your password?" link keeps them within their ...
1
vote
0answers
18 views

Compare meta_query with a Regular Expression and do a less-than operation on it

I have the problem that my client is using a theme which stores options of items in a serialized way in the post_meta table. I already found out that this is not the best way to save values ...
1
vote
0answers
17 views

changing behaviour of get_search_form

I created a function to display a search box and named it my_get_search_form() that is a copy of original get_search_form() function. when I call the function, the output is this: Search in ...
1
vote
0answers
75 views

Using different parameters for different queries with pre get posts in functions.php

Im using pre_get_posts for my taxonomy.php for my products and paginations to work properly. And I have my pre_get_posts in my functions.php. This is how that current code looks in my functions. ( ...
1
vote
0answers
9 views

Images uploaded to the media library has strange colors. However, in the edit screen the color is ok

This is a strange issue that I've never encountered before. When I upload this image to WordPress' media library, it comes out like this (image on the left): This is also how the image appears on ...
1
vote
0answers
29 views

curl_exec causes timeout on mod_fcgid

I have a very weird situation on my hands and I cannot understand what is happening. It is a true mystery. I am using a theme called, IpinPro its basically a Pinterest clone. It all works perfectly ...
1
vote
0answers
19 views

Add custom buttons with custom actions in Edit Post screen in WordPress?

I am creating something for a client and I have a Class that I created with a Custom Post Type called 'PuSH Feeds' and when the user adds a new post and publishes it they can then click on one of two ...
1
vote
0answers
18 views

Give to site admin the option to “skip confirmation email” when adding new user

in wordpress multisite when we give to site admin the option to add new users, site admin dont have the "checkbox" to add the new user without sending the user email with link activation (see the ...
1
vote
0answers
12 views

same slug for custom postype and page pagintion not working

I have created post type "news" and a page "news" so my url is like http://demoserver.com/testsite/news Here i use page template for news landing and i do not use archive.php page for post listing ...
1
vote
0answers
16 views

How to make customizer settings appear only when image is uploaded?

I'm trying to replicate the WordPress core background image customizer settings where the styling settings/controls only appear when an image is uploaded, but can't find a way around it. Is there a ...
1
vote
0answers
38 views

How can you use one database with multisite

I have two separate wordpress installations and two different domains. I am using one database with table prefixes. It works great but when I enter my content on one site it isn't reflected on the ...
1
vote
0answers
23 views

Override do_item() Function to Add Extra Attribute to Scripts

The WordPress file that do_item() is in can be found here: class.wp-scripts.php Line 142 Line 144 $this->print_html .= "<script type='text/javascript' src='$src'></script>\n"; ...
1
vote
0answers
26 views

Rewrite rule for Custom Post Type Page as a parent

I'm searching for answers, but unfortunately can't find and hope to find here. I'm using Pods for custom post types called "players" and normal Pages for "teams", which is hierarchical, for example: ...
1
vote
0answers
48 views

WordPress Example Code for Blocking Referrer Spam

While looking for a way to block semalt I found this code block in the Codex: SetEnvIfNoCase Via evil-spam-proxy spammer=yes SetEnvIfNoCase Referer evil-spam-domain.com spammer=yes SetEnvIfNoCase ...
1
vote
0answers
19 views

Is resetting post data necessary with custom WP_CLI commands?

Is it strictly necessary to call wp_reset_postdata(); in a WP CLI command? I am doing it out of habit but just wondered if the $post object needed to be reset.
1
vote
0answers
19 views

Get nav_menu items as a tree

Is there any way to grab the nav_menu items as a tree-like structure? By a tree-like structure I mean something that would preserve relationship between child and parent items, like so (this is just ...
1
vote
0answers
18 views

Visual editor become blank after updating an article

I'm using WordPress 4.0 on an IIS installation. Everything is working fine, execept for one thing. My editor wrote an article and saved it. When page refreshed the visual editor become blank, without ...
1
vote
0answers
16 views

Widget area inside a widget

I tried putting dynamic_sidebar('widget-id') inside a custom widget I created and it worked. The only thing I can't figure out is how I can do this through a loop. Is there a way that when the widget ...
1
vote
0answers
21 views

Changing the default taxonomy key length

I want to change the taxonomy key length to support keys greater than 32 chars. I have adopted a custom WooCommerce store where some WP core files wp-includes/taxonomy.php have been edited to change ...
1
vote
0answers
19 views

I can´t access my admin panel. I tried all possible solutions

HELP. This morning I was editing a little line in the style.css file (to change the way the navigation menu displayed). All of a sudden I was not able to access my admin panel, but the frontend was ...
1
vote
0answers
43 views

Password reset bug? - “Sorry, that key does not appear to be valid”

Recently my WordPress website's reset password function has started to not work. When a user clicks the link that the 'forgot your password?' link sends out, it displays the error "Sorry, that key ...
1
vote
0answers
15 views

WP_Widget instance value to wp_head

I have some problem with dynamic variable on widgets. class instaslidewidget extends WP_Widget { public function __construct() { parent::__construct( "text_widget", ...
1
vote
0answers
13 views

Add custom post type drafts to RSS feed

I have an RSS feed setup for my custom post types, but I'm trying to add in all posts with the status 'draft'. Here's what I've tried that doesn't seem to be working at the moment : function ...
1
vote
0answers
17 views

Audio preloading

I'm using wp_audio_shortcode() to display an audio file in my page. For example: $attr = array( 'src' => 'http://example.com/my-audio-file.wav', 'preload' => 'auto' ); echo ...
1
vote
0answers
17 views

Add more structure tag to permalink?

I'm new in wordpress .I wondering is there anyway to get the category id in permalink ? My current permalink is : http:///example.com/%category%/%post_id%-%postname%.html ...
1
vote
0answers
30 views

Show comments of a user post only when they are login

I have a front end client portal I created when a user logs in they are redirected to a page called "Dashboard". The pages displays recent projects, invoices, and recent messages. Recent messages ...
1
vote
0answers
16 views

Usage of current_user_can()

I have a custom post type company, which has its own custom set of capabilities, including read_company, edit_companies, publish_companies, and delete_companies. In order to implement a role-based ...
1
vote
0answers
23 views

Usage of post_formats

During the process of developing my first serious theme I stumbled over a basical question: how should I use the post_formats? I know what post_formats are useful for. But for learning purpose I ...
1
vote
0answers
16 views

How to get the last selected media alignment setting?

The default media uploader for inserting into a post retrieves the last selected alignment setting that was used. How do I retrieve that for use in my plugin?
1
vote
0answers
9 views

Override customizer values on a per-menu base

suppose I have a few options in the theme customizer, and I might want to show for example 5 different categories listing menus in the site. In the customizer I can set options for all of those, ...
1
vote
0answers
31 views

How make a multi language routes, with rewrite rules or rewrite endpoints?

I want to know a concept of making a multi language routing system for WP. That is the best practice, to make this routing system with add_rewrite_rules for pages post arhive etc in part, or to use ...
1
vote
0answers
26 views

Change tinyMCE editor to allow marked content when pasting from Word

I'm a big supporter of how WordPress handles pasted text from Word, however for my client I need to change this. My client is marking text within Word to use as a reminder (background color). Does ...
1
vote
0answers
17 views

Forbid contributors viewing drafts

Is there any way I can forbid a contributor to view draft posts? Right now any contributor can view my draft posts and even edit them (however their edits must be approved by administrator first).
1
vote
0answers
22 views

Adding Field to Profile “Name”

I am trying to add an extra field or two underneath the "Name" or "About" section in the Wordpress user profile. So far I have only been able to accomplish this by: //Begin ...
1
vote
0answers
12 views

Multiple register settings, with same option name - issue

I already posted this question in wordpress support forums here but I didn't get any help and nor could I find a solution yet. As the title says, I am calling register_settings functions multiple ...

15 30 50 per page