1
vote
0answers
19 views

Edit single attachment on click (WP-admin)

I've created a custom media manager for a CPT I've created. I have everything functioning properly except an edit function. I want to have an edit button for each attachment that gets added to the ...
1
vote
0answers
46 views

Extending WP_User class and using this sub-class during the whole lifecycle

I am currently struggling with this software design issue I can't seem to get hold of. What I am trying to achieve is the following: for every user on our website, I want to do an API request to a ...
1
vote
0answers
48 views

How can I use fragment caching to exclude certain plugins from being cached?

I'm using the popular W3TC to optimize load times. The website that I run is dynamic and has login widgets as well as status indicators for game servers. The widgets are not hard-coded into the ...
1
vote
0answers
65 views

Which is best to use $_SESSION or WP_Session?

I have little confusion with $_SESSION and WP_Session over their performance,which one is best to use. thanks.
1
vote
0answers
47 views

Troubleshooting Emoji in Comments

Just updated my local and live installs for a side project to 4.2 in order to take advantage of the newly added Emoji features. Emoji are working just fine on my local machine, but they seem to not be ...
1
vote
0answers
11 views

Save/update widget outside admin panel

Is there some way to update/save widget from page - not from admin ? I create widget with charts and do not know how to update it from sidebar. I found of course form in admin: <form action="" ...
1
vote
0answers
57 views

Display name of the last child category

I have the following product structure: -- Category -- Deep -- Deeper Currently the last child category "deeper" will only be used for labeling products. What I want to do is to echo only the last ...
1
vote
0answers
36 views

wp_update_post adding a -2 to the post slug

I've recently created a php file that is creating posts using the wp_insert_post function. This is working great and its inserting the post as it should do. I am leaving out the post title as I want ...
1
vote
0answers
23 views

Display message on homepage when new user account is activated

When a new user registers on Wordpress an activation link is sent out to their email address. When the user clicks on this link they are directed to my homepage and their account is activated. At ...
1
vote
0answers
62 views

Category control subcategories

After hours of googling and no result I am turing to you. I have a Wordpress site where me and my colleagues publish information to the rest of the company. There are several screens put up on ...
1
vote
0answers
34 views

Custom filter function not working with Custom post type

I have custom post type "soto_property". I have made a custom filter to filter post listing according to used meta data named "operations". Here is my code- <?php add_filter( 'parse_query', ...
1
vote
0answers
11 views

Fallback for oEmbed content

Is there any easy way to detect if an oEmbed url is still returning any content? And, if so, is there a way to replace the missing oEmbed content with some kind of fallback content? For instance, if ...
1
vote
0answers
41 views

Storing revisions of metadata for custom post type

Storing metadata for custom post types is easy, you just need to add an action for 'save_post' with your method that handles this. In which you have then something like the following for a field that ...
1
vote
0answers
33 views

Do attachments added to custom post types have a post parent?

On attachment pages, I have a link back to the post/page where the file was uploaded. (This is not displayed for files that were directly added to the Media Library and that's fine.) For attachments ...
1
vote
0answers
49 views

Show image EXIF info

I am working on image gallery site. On test site (which is on shared hosting) I created and tested theme and plugins. I know that WP store some extra info about image during image upload (EXIF/IPTC ...
1
vote
0answers
44 views

Is it possible to add the user avatar & name in the header?

I have a WordPress multisite and setting it up for a specific use. I have setup my WordPress multisite so when a user registers, that user can only create one site and that user is the only ...
1
vote
0answers
20 views

Automated spam being caught in 2 posts. Can this be used to help get rid of spam on everyone's sites?

I don't know why but I have two old posts that seem to be attracting spam from some automated system or bot. It doesn't bother me but is there a way to use this data to try and help reduce spam on ...
1
vote
0answers
39 views

Development environment

We have an internal project where two developers work together, each one on each local environment and they integrate their work on a small shared server. I've realized that whenever someone does ...
1
vote
0answers
47 views

Issue with loading mobile specific custom single page layout in mobile

Hello I am in the middle of theme development which has specific layouts for mobile, I built a custom function to detect mobile and load mobile specific layouts in mobile view ports. Here is the ...
1
vote
0answers
92 views

get post content of particular post by url

I want to get the post content of particular post using Curl or any other methods from third party website is it possible? As the structure remains the same <entry-content> i guess there ...
1
vote
0answers
21 views

Getting the ID of header image, even when set to random

I was looking for a solution to reliably get the ID of the header image, either the user had choose a single or a random image. The only way i've found to do this relies on accessing a Wordpress's ...
1
vote
0answers
14 views

Create page from plugin, but have it completely hidden

I need to have a plugin create a page that is publicly accessible, but does NOT show up in the admin section anywhere, and cannot be deleted or modified. I thought maybe figuring out a way to have a ...
1
vote
0answers
20 views

Sort trash by date post was trashed

Is it possible to sort the trash for post by the last post added to trash. EG: I trash post 4,2,1,3,5 I would like these post to be sorted in trash by the last post trashed, so they would appear in ...
1
vote
0answers
34 views

Undeleting a deleted user

I have deleted a subscriber and now everything is gone that I had on my website! How do I 'undelete' him?
1
vote
0answers
33 views

Add media library tab

I'm trying to make a new tab in the media library. I have found the function add_media_page which helps me add a page in the media menu to the left. How ever, this menu is not always visible, for ...
1
vote
0answers
90 views

Page Template as Custom Post Type Archive

My goal is to have the slug www.domain.com/resources used by a Page Template rather than an Archive Page, and have single CPT posts as children of that slug, such as www.domain.com/resources/post. ...
1
vote
0answers
36 views

Limit number of widgets in widget area

I used code to limit each widgets area to one widget only. It works great: It uses JavaScript to do so, using the fact that the dashboard’s widgetized areas all use the jQuery UI Sortable library, and ...
1
vote
0answers
24 views

get_template_directory_uri not dependent on WP_HOME in wp-config.php?

For testing on mobile devices in my local network, I've set up xip.io according to this blogpost I can access the site, but even though I added the following to my wp-config.php define('WP_HOME', ...
1
vote
0answers
50 views

How to get attachment id as soon as it is uploaded through media uploader in jquery?

Using jquery, I am trying to get image attachment id of all images requested to upload through media uploader on post edit page or upload.php. Here is what I tried but this works after all images are ...
1
vote
0answers
41 views

Diffrent User registration form for doctor and patient

I am building a health care website. where both patient and doctors are allowed to register. Here I want to register doctors by different registration form and should be available with different ...
1
vote
0answers
42 views

Access Customizer widget instance form

On the WordPress admin widgets page there is a known issue with the widget form not being available the first time a widget is added to a widget area. This can be seen in this trac ticket here: ...
1
vote
0answers
37 views

Override Widget class in plugins with custom plugin

I am currently modifying a purchased theme for a client that has several required plugins for it to work. One of the required plugins, creates a widget that displays a post type and client would like ...
1
vote
0answers
17 views

Dissolve Multisite while making site #5 the main site?

I have a very unique situation, I was also unable to find a solution, but perhaps someone else has experienced something like this before. A client of mine has a multisite set up, however they now ...
1
vote
0answers
57 views

action hooks returning old category instead of new category

With some help I created a WP Action to send an email to the author of a post (custom post type) when the category has been changed. This works ok, except that the function is returning the previous ...
1
vote
0answers
29 views

Using $wpdb to fetch posts with meta data

I have a post type "shows" with 500 posts in it. I want to list all 400 in one page listing their title + 5 meta fields and a url to the show post thumbnail. I initially went the classic wordpress ...
1
vote
0answers
27 views

How to render taxonomy in loop of custom post_type

I made custom post type and taxonomy and on my page template I want to render the taxonomy name in my css class. Anyone know how to render it? This is what I have so far <?php $args = ...
1
vote
0answers
122 views

Create new user without password

For a specific use case, I need to add users only by username and email without having to input a password for them. Right now if i try to leave the password field empty, it displays an error. How ...
1
vote
0answers
67 views

Allow up to 5 Concurrent Login Sessions

I'm having trouble implementing a concurrent login check. The site needs to prevent more than 5 concurrent sessions for any particular user at one time. Example: User Matt can have 5 active ...
1
vote
0answers
23 views

Query posts by last comments

How to query posts by lastest comment, like what happens here, if some one comment on a post from the dark ages it will popup to the top.
1
vote
0answers
24 views

Need to run a plugin on Customize.php

I'm running a multisite installation and have a plugin installed that lets users that are given a user meta option to be their specific role on any site that they aren't associated with. So if they ...
1
vote
0answers
29 views

How to import files to individual posts of a custom type

I'm very inexperienced in WP, so I may have some fundamental misunderstandings - definitely open to alternative approaches if this one is crazy! I have a collection of several hundred files, split ...
1
vote
0answers
32 views

Using MAMP and Xip.io to view a WordPress Multisite on a local network

I am trying to use MAMP's built in Xip.io functionality to view a WordPress multisite installation on a local network. I have this working no problem with a WordPress single installation but am ...
1
vote
0answers
17 views

Change wp_sanitize function?

I have a domain name like sép. wp_sanitize functions clears the écharacter. I would like to change it, but I cannot redeclare in functions.php. Is it possible to change, or WordPress cannot run ...
1
vote
0answers
62 views

Best Practices for a Completely Customizable Homepage - without plugins

Let's say you have a homepage where you want to be able to feature 10 posts of various types (posts, pages, and Custom Post Types). You have hundreds of these posts to choose from. What would be the ...
1
vote
0answers
31 views

rewrite taxonomy-{taxonomy}-{term}.php terms

I try to figure out a rewrite problem, that is a somewhat over my head, so i ask here to find out what i can do. I use this two solutions from Jeff 1 and Milo 2, to get a full-path url for my custom ...
1
vote
0answers
43 views

Custom Taxonomy

I am trying to create a food menu. I am trying to use the custom taxonomies to do this. However, I am struggling to work out the best way to go about this. The idea is to have three levels Menu ...
1
vote
0answers
76 views

Set Display Name to first and last name (phpmyadmin SQL Query)

I'm trying to change all the users Display Names to be their first and last name. I have looked into a number of plugins and wrote my own PHP to try and accomplish this however the site has over ...
1
vote
0answers
49 views

Move Archive Title to Entry Title - Genesis

I’m using the centric child of genesis theme where I’ve created a custom post type portfolio and and created a portfolio archive page to show up my portfolio. Now when I added “Archive Headline”, it ...
1
vote
0answers
30 views

How to add internal, revision comments to page updates

I'm not sure the proper WP parlance for this, but I'd like to add historical comments to submitted page updates for version control purposes or as a supplement to the Revisions Browser. (Something ...
1
vote
0answers
76 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: ...

15 30 50 per page