1
vote
0answers
68 views

How to trigger a refresh in the media modal

I'm developing a plugin that adds a new tab to the media modal, and I need to know a way trigger a refresh of the attachments tab so it shows newly added attachments. This is the code I'm using: ...
1
vote
0answers
39 views

Active class not working on page created by plugin wordpress

I'm developing a plugin that creates a post type "foo" and a page template "template-foo.php" The problem is the default WordPress active class current_page_item is not applied on my page. It is ...
1
vote
0answers
66 views

tax_query OR with empty result returns all posts

I'm running a WP_Query with a tax_query with two tax_query statements with an OR relationship. $tax_query_terms = array( array('taxonomy' => 'post_tag', ...
1
vote
0answers
45 views

Wordpress can generate numeric permalinks, which then 404

I know why setting a numerical permalink for a post would mean Wordpress confuses page name and number. However, I notice on the site I am working on (Wordpress 4), that you can edit the permalink to ...
1
vote
0answers
57 views

Sort alphabetically by custom field

I'm trying to change the sort order of a custom field in a custom post type. I want it to be be alphabetical by the 'location' name. It's sorting by location, but not keeping them in alphabetical ...
1
vote
0answers
56 views

Override default new user registration email with custom message (non sub-domain multi-site installation)

My problem is as follows. I have a multisite running on a non-sub-domain install. I am trying to customise the welcome email a user receives upon registration. I managed to customise the welcome ...
1
vote
0answers
90 views

Separate Database Tables For Different Post Types

one big problem with wordpress is that everything on it is a post(a record in wp-posts table)! images, posts, pages, products(for example in woocommerce), portfolios, Post Revisions... Almost ...
1
vote
0answers
55 views

wp_set_auth_cookie() doesn't work in Ajax call

I am trying to create a Facebook JS-SDK based auto login feature. When user is "Connected" passing FbID and aother user data to an ajax function which creates the session cookie. Cookie is created (I ...
1
vote
0answers
40 views

Allow non-admins to access the Customize theme page

I'm using a theme that has a very robust customizer and I want users other than an admin to be able to use the customizer so they can customize what their site looks like. The URL for the customizer ...
1
vote
0answers
27 views

Posting blog entries in screenplay format

Recently I've been working on a series of scripts and wanted to publish them on my site as blog entries, largely because having them just sitting on my hard drive with only a few people reading them ...
1
vote
0answers
59 views

Styling my own password protected page, how to deal with wrong password?

Per these instructions I've cooked up a custom password protected page for some of the pages on my site: <?php if ( post_password_required() ) { add_filter( 'the_password_form', ...
1
vote
0answers
23 views

How do you add a <div> around the second level of a Menu?

I've been searching around online and reading up on walkers but I can't figure out how to do this. Basically I need a <div class="sub-container"> wrapped around the second level of the menu but ...
1
vote
0answers
75 views

Default 'post' post type archive slug?

I have a wordpress site, which has a front-page.php rendering a custom front page, so that this template will show no matter if WP admin settings is set to static page or show posts. The default ...
1
vote
0answers
50 views

Customize default settings on new sites on multisite

As the title states i need an approach to change default settings when a new site is created on my wordpress multi site. I guess its easiest to keep the code in a mu-plugin but can a go about having ...
1
vote
0answers
19 views

Is there a way to import a folder of HTML files into the blog?

I have a folder of about 100 HTML files (all marked up consistently) that I want to turn into individual blog posts. Each one has a paragraph that says "Posted by User on 4/9/2013 5:45:52 PM", but ...
1
vote
0answers
26 views

Get the User ID Who Owns a Given Blog ID in Multisite

I am working on creating a function that will take a $blog_id and return the corresponding $user_id of the user who owns/created the blog in a multi site network. public function ...
1
vote
0answers
76 views

Removing username from the 'wordpress_logged_in' cookie

I am working with a client with some strict security measures. After undergoing security review, we were notified that the user name stored in the logged in cookie, e.g. ...
1
vote
0answers
62 views

Wordpress server change - slow admin login time for first time

I have a large Wordpress site. On local system we create a git repo for deploy a local version of Wordpress to DigitalOcean VPS servers. All Works great, but here is a problem to update a sql ...
1
vote
0answers
27 views

how to setup custom content structures

I have some custom pages I need to develop, and I want them to be easily edited by my client. The problem is that the markup is fairly complicated, I want to be able to give them the ability to edit ...
1
vote
0answers
36 views

How to switch to year/month directory structure format from a single folder

Currently we have close to 800,000 images in the Wordpress /uploads folder. It's a single folder and not structured on years and months. Our admin says that there might be an issue with backing up ...
1
vote
0answers
47 views

What is the correct approach to deal with css rules that the theme gets from a function

I am trying to change the color of entry-footer in my Twenty Fifteen theme. My modifications in the child theme is overridden because when the website is rendered in a browser, WordPress outputs ...
1
vote
0answers
213 views

Warning: An unexpected error occurred. Something may be wrong with WordPress.org

All the pages in my wordpress site shows the following warning. (both in admin view, and the site) Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s ...
1
vote
0answers
94 views

Necessary user, group and permissions for core updates

What user, group and permissions of files and folders I need for core updates? Test setups I tried everything the manual recommended me to. Here are some test setups I used, the setup was ...
1
vote
0answers
145 views

How to Add multiple instance of meta box to custom post type

I am able to make custom post type and custom meta box but my situation is that i want to attach multiple instance of custom meta box to custom post type. my custom post type is show which have ...
1
vote
0answers
41 views

How can I disable all external url Google in Wordpress backend?

At certain places google.com blocked. When opening the Wordpress backend requires a very long time. Do you have a suggestion about a function to disable external url google such as Google Fonts,Google ...
1
vote
0answers
37 views

Extending Media Gallery - Retrieving values from short code

There are some existing questions that discuss how to add fields to the gallery dialog box and get those into the short code. What I want to be able to do is facilitate editing an existing short ...
1
vote
0answers
25 views

Opening Brackets Do Not Format to Paragraphs in Visual Editor

I'm having issues with paragraphs in the visual editor. So let's say I create a blockquote, type the first line, hit enter. It makes a new paragraph. Shift + enter makes a new line. Just like usual, ...
1
vote
0answers
20 views

How to enqueue admin content outside admincp

How do I enqueue admin javascript/css/header outside admincp, and specifically outside Wordpress. I checked one of the admin pages, and it contains this line: require_once( ABSPATH . ...
1
vote
0answers
30 views

Changing URLs for taxonomies and CPT

I have two taxonomies for my custom post type: location and price-range. location is hierarchical: city > region > suburb ... price-range isn't. When a user goes into a URL like ...
1
vote
0answers
88 views

infinite-scroll for 2 fixed height containers

I have 2 fixed height columns for 2 different post-types. The goal is to get the infinite-scroll to work in both containers. I know that the JetPack infinite-scroll container parameter uses ID value ...
1
vote
0answers
48 views

Troubles with Walker_Nav_Menu and closing <ul>

I have an existing site that I am moving into Wordpress. My requirements state that I do not have the ability to change the HTML or CSS. I have a sidebar menu that I am trying to recreate using a ...
1
vote
0answers
19 views

Wp_customize_image_control Use Add Media

Is there a way to use the Add Media in the wp_customize_image_control for Theme Customizations? The default image_control is very bare bones and only allows uploading of an image. There's no selection ...
1
vote
0answers
43 views

Theme elements not translating

Ive got a theme that is set-up for translating but didn't come with any translations. I used poedit to automatically detect the strings, and subsequently translated it in full. However certain ...
1
vote
0answers
80 views

Wordpress 4.1 header image problem

I want to use a moving .gif as my header image in wordpress 4.1. In previous versions I could skip the cropping step and leave the image as is, and it would let me pick a moving gif as my header ...
1
vote
0answers
104 views

Crop image to horizontal or vertical by code based on image size

my client asked me to create gallery(WP gallery) based on this site. the problem here is that i need to crop images based on image size before inserting the image in the Media library. now i using ...
1
vote
0answers
146 views

Run oembed separately outside the_content()

I have this structure for my content.php : <div class="featured"> <!--featured image here--> </div> <h1 class="entry-title">Post Title</h1> <div ...
1
vote
0answers
56 views

Duplicate hash method for password in .NET

We are managing the sales, subscriptions and customer profiles/accounts to our products via WP 4.1. The subscriptions are to products on a separate server with .NET. After a customer makes a purchase ...
1
vote
0answers
178 views

comment_form() not showing on custom post type

I'm using Gravity Forms to create entries from forms, and Gravity View to display these entries on the Front-End. By default, Gravity Forms and Gravity View doesn't have a comment system for the ...
1
vote
0answers
76 views

Refreshing collections in the admin media manager

I know this question is very similar to this previously asked question; however, I was wondering if there was a more up-to-date/official way to refresh content programmatically in the WordPress admin ...
1
vote
0answers
56 views

Media Upload , file name changed automatically

I face a problem that when i upload a video that named in non-english language , for example : Arabic , it placed in uploads folder with strange name Ùيديووو so it can't be access through ...
1
vote
0answers
14 views

In context click and edit: is it feasible?

I would like the following feature, and I'm willing to put my hands on it, but I'd like that developers more in touch with WP codebase give me some feedback. I want to have some sort of in-context ...
1
vote
0answers
69 views

Media modal in IE9 not working when included from plugin with wp admin scripts minified

This issue occurs with custom code that uses the WP Media modal, such as https://github.com/humanmade/Custom-Meta-Boxes or https://wordpress.org/plugins/categories-images/ The modal window does not ...
1
vote
0answers
43 views

force feed readers to pick atom version

The reason i want to do this is Feed versions of my Front-page (rss and atom) are different! that's right. i have placed a function code to put preview images in feed but looks like it only effect on ...
1
vote
0answers
93 views

How to have different captions for same image, for galleries?

Seems like I can't have the same image in different galleries with different captions. Is it possible to make that working in any way? Like if we could change the shortcut code that Wordpress is ...
1
vote
0answers
58 views

Login problems on multisite installation with different domains

I have a subdomain multisite installation in site.com, with subsites such as sub1.site.com, sub2.site.com etc. I needed to transfer one of these sites to an own domain, sub1.com. So I changed the ...
1
vote
0answers
63 views

Pull data and display as rows and columns

I am a noob when it comes to pulling data from tables and fields of a WP database so I'll explain it as best as I can without it running into a thesis. I have a table called WP_answer. In that table ...
1
vote
0answers
18 views

if it possible to get all notifications from all plugins and core?

if it possible to get all notifications from all plugins and core? when notifications appears wordpress insert this to: <div id="message" class="some class">notifications text</div> ...
1
vote
0answers
128 views

Can't generate thumbnail images

Having a very strange problem with this site I recently took over hosted on RackSpace. Seems whenever i upload a new image, it doesn't generate different sizes and I'm trying to get it where it will ...
1
vote
0answers
80 views

Two domain for one site not working in mobile

I want to have two different domain for my site 1) Desktop and 2) Mobile. So for 1) Desktop : https://example.com 2) Mobile : https://m.example.com(Or can say https://example.com/m) To ...
1
vote
0answers
80 views

Order and group posts by acf by month and year

How can group posts by month and year by a separate headline? Example (output with this date format): Dezmber 2014 - 4. Dez 2014 - 5. Dez 2014 I have a custom field (datepicker) "event_date". ...

15 30 50 per page