1
vote
0answers
13 views

Any suggestions on how to make this function more efficient or more generally useful?

I wrote this to handle sanitizing all the fields in $_POST before saving them to options and to sanitize and initialize everything before creating the form. You can use the same $soap array to handle ...
0
votes
0answers
4 views

User management with audio/video submissions, upvoting and star-based rating systems

I'm working on a site that needs a user management system that support the following: Frontend interaction - registrations and logins need to happen all in the front end. User submitted content - a ...
0
votes
0answers
3 views

Hide event from specific category when adding events to main RSS feed

I used the following snippets to add events from The Events Calendar to my main RSS feed so that visitors can subscribe to post for the site via Jetpack: // Add Events to RSS Feed function ...
0
votes
0answers
8 views

How to change this internal image link parameter using PHP?

How resize this string / change link parameter. Original file = mydomain.com/wp-content/uploads/2015/01/name-file.jpg Return to $string now = ...
0
votes
0answers
3 views

Filter posts/pages by user_role array

I have made a code for to filter wich pages to show depending on your user_role. Everything was alright. But my customer created NEW roles with similars name/slug. So now, if some 1 have the role ...
0
votes
0answers
13 views

How do I make a child theme I made POST through a 3rd party plugin?

I made a custom form in a child theme I am developing. One of the plugins I have installed is Anspress. I want to use my question form instead of the plugin's form. How do I make my form post through ...
0
votes
0answers
3 views

Multisite with MU Domain Mapping won't allow network admin to login

We tried to login to the Super Admin to make network wide changes. When we try we get redirected back to the login screen with no errors. "sunrise.php" is in the wp-content folder ...
0
votes
0answers
4 views

Why is MySQL receiving such a large serialized object?

I have gotten a 20GB error log that has an entry of repetitive serialized objects that look like this: ...
0
votes
1answer
15 views

Check if value exists before saving

I added an extra registration field: function wooc_extra_register_fields() { ?><p class="form-row form-row-first"> <label for="billing_cpf"><?php _e( 'CPF', ...
1
vote
0answers
8 views

Slow SQL_CALC_FOUND_ROWS Query

We are experiencing very slow performance with queries that use SQL_CALC_FOUND_ROWS within the admin section of WordPress. We currently have about 125,000 posts on our site and use Varnish to cache ...
0
votes
0answers
4 views

Prevent multiple roles

I have the following code which updates a user's role according to his/her Paid Membership Pro subscription: //assign role function my_pmpro_after_change_membership_level($level_id, $user_id) { ...
0
votes
0answers
10 views

Page redirect only works in WP-admin

I have my site set up to redirect the user to a specific page if the user has a cookie. This has been working for a while now, however, after installing a plugin (Wild Apricot Login) this feature no ...
1
vote
3answers
13 views

count_many_users_posts except current logged in user?

Is there a way to count and show the count of all author posts in a custom post type except the current logged in user? I was hoping there's a way to do it with count_many_users_posts but it doesn't ...
0
votes
1answer
25 views

How to create a wordpress theme without coding

I have been searching for a solution to creating a wordpress theme "without coding". Does anyone know of a solution/suggestion for this? I would not like to use a framework (as I would like to ...
0
votes
0answers
6 views

Block Update Profile Errors

I'm trying to validate the form users submit when updating their profile data. I've hooked into user_profile_update_errors. It prints errors correctly to the user, however, it still allows the ...
0
votes
0answers
13 views

action callback, for action dispatched as reported by hook sniffer, not called

I installed the plugin https://wordpress.org/plugins/hook-sniffer/. Action Event Firing Order: Array ( [muplugins_loaded] => 1 ... [the_post] => 3 ... ) ... yet function ...
0
votes
0answers
18 views

How to clear wpColorPicker (Iris.js)?

I'm trying to clear the WordPress colorpicker but seems it doesn't work. This is what I'Ve tried: $('#element').wpColorPicker('clear'); //error: Uncaught Error: no such method 'clear' for ...
1
vote
1answer
18 views

Help with some php math in Wordpress

I've made a woocommerce store and I am using a dropshipper - so every product has an price and a trade price for me - which I am importing and storing as a custom field 'trade_price' on the product. ...
0
votes
0answers
5 views

BuddyPress Favorites Activity Stream Not Working

I’m new to BuddyPress, but would like to use it on a site I’ve developed recently. I’m specifically looking for the ‘Favorites’ Activity Stream, per client request. After install, I checked my blog ...
0
votes
0answers
11 views

Panel displays the name of the selected category

I select a category to display the settings panel characteristic form of the contents of a box. I added the following code to display the name of the category and content as I put it. The problem is ...
0
votes
2answers
14 views

Query post for today, if no post get the previous one

EDIT : I answered myself. Simple request for you. I am trying to develop a code that search for post for TODAY. If it returns nothing, then get the latest post before today. For now, I have made a ...
0
votes
1answer
8 views

Make custom Wordpress comments list

i'm making a custom Wordpress template and I've made this HTML code for single comment template: <div class="comment" id="1"> <div class="useravatar" ...
0
votes
0answers
6 views

Twenty Fifteen homepage customize background

I am trying to change the background color on the Twenty Fifteen homepage, custom homepage.php, code below: .page-template-homepage-php .site-main, .site-footer { background-color: #000 ...
0
votes
1answer
9 views

Outputting subcategory title AND items on Category page

When a user clicks on a category, if there is a subcategory, I want it to appear in an h2 and then the items below it. For example: Click on shirts See Hanes in title, then items HA101, HA102, ...
0
votes
0answers
6 views

WordPress - Meta query with JSON value?

Im using post meta to store some value. Im having the following in wp_postmeta table: meta_key mykey meta_value a:2:{i:0;s:1:"5";i:1;s:1:"2";} I need to return posts which have meta_value of 2. ...
0
votes
1answer
7 views

Huge cron option_value into wp_options table

I recently noticed after performance errors and failure that the memory that a single request was consuming (either front or back) was increased rapidly. After hours of experiments and research I ...
0
votes
0answers
23 views

White screen of death

I have a website which I cloned here. After the installation, the site shows WSOD. The site works fine on the real site. Please guide. Thanks.
0
votes
0answers
4 views

Search for WooCommerce theme with product groups

In wp 4.3 I used Storefront theme for WooCommerce, but I would like something different theme: something with category grouping ( all products are in different groups and I want possibility to select ...
0
votes
0answers
8 views

How to view W3 Total Cache for testing?

I've attempted to cache JSON endpoints in WordPress by following this post: http://wordpress.stackexchange.com/a/115384 // Modify the output buffer callbacks of W3 Total Cache to work with the JSON ...
0
votes
0answers
7 views

Is there a way to always have “Add to Cart” button showing and selecting Default Variation?

What we are noticing is that customers are complaining that it takes too much time to go to each product page and select a variation and then return to the store page to go through the rest. I am ...
0
votes
0answers
8 views

WP OAuth Server “The grant type was not specified in the request”

I've installed WP OAuth Server to make an SSO thing with my Wordpress, but I can't get it to work proper. I followed this example on how to set up Single Sign On. I'm stuck at Step 3. I get this ...
0
votes
1answer
8 views

adding ajax load more to display images from meta box

I am using metabox's advance file uploader to upload images. <?php $images = rwmb_meta( 'tj_file_advanced', 'type=image&size=YOURSIZE'); foreach ( $images as $image ) { ?> ...
0
votes
1answer
6 views

Jetpack Mobile Theme: when on smartphone on categories the theme suddenly changes to jetpack mobile theme even though it's deactivated

I'm having a little problem with my mobile theme. I'm using a Momentous Lite child theme for my website. On my Smartphone the home page looks as it's supposed to do but as soon as I switch to a ...
0
votes
0answers
15 views

Wordpress using custom template for sub-sub-category and posts within

I have created a big common category "Catalog" ($category->cat_ID = 2). It contains a few sub-categories like "Series1", "Series2" and so on. Every sub-category contains a few sub-sub-categories ...
0
votes
1answer
15 views

Custom user roles doesn't apply changes

I have created a custom user role but something strange happens. This is the role: add_role('custom-role', 'Custom Role', array( 'activate_plugins' => false, 'delete_others_pages' => true, ...
0
votes
1answer
21 views

Nothing happends on post_update

When I'm adding a new entry to my custom post type - new category is created. Now I'm trying to change category title when my custom post type is changed/updated, but this code doesn't work at all. ...
0
votes
2answers
20 views

how to upload image using wp_handle_upload

hi i am new on WordPress can somebody tell me how can i upload multiple images using wp_handle_upload in a loop for($i=1;$i<count($_FILES['myfile']['name']);$i++){ ...
0
votes
0answers
16 views

Integrating external php api code into wordpress

I want to integrate an external API into WordPress. The API is of property listings, I have the PHP code for it, the output can be in JSON or XML, have code for both, but I don't know how to integrate ...
0
votes
1answer
31 views

wordpress: creating a contact form without a plugin

I am working in wordpress, and in one of the pages, I need to add a contact form not using an existing plugin. I have tried to create a contact form as I usually do with PHP. The form must send an ...
-1
votes
0answers
10 views

Drag n Drop Media Not Working in Windows 10 Edge Browser

So since the release of Windows 10 and its Edge browser I am now unable to drag n drop media to upload it on my WordPress website. Dragging n dropping media works fine on any other browser except the ...
0
votes
0answers
6 views

Editable icons for a submenu

I have a main menu in my website and some of its elements have a submenu formed by different posts inside that category. Now, I have at the moment a harcoded menu with a list and each element of the ...
0
votes
1answer
15 views

Cancel/Stop a currently ongoing scheduled cron event?

If I scheduled a CPU-intensive job via a cron scheduled event, how do I go about stopping it or cancelling the job while it is currently running?
0
votes
0answers
11 views

Order Authors by custom field

we just relaunched our blog and one important thing was to set up a page which shows the authors, which worked. But now my chef wants me to sort them in a specific order: there are some authors who ...
0
votes
0answers
7 views

WPML custom lenguage slug in permalink

With WPML tranlation plugin is possible to change language slug in permalink for something like this: change "mysite.com/en/" to "mysite.com/my-site-in-english/" change "mysite.com/es/" to ...
1
vote
1answer
23 views

Broken admin - clean install

I'm having issues with a clean local install of 4.3, my admin is broken and it seems a JS issue. Please check the attached screenshot. No plugins or themes are installed. Anybody is experiencing the ...
0
votes
0answers
11 views

Add submenu items programmatically in front-end menu

I have defined a front-end menu main-menu for my theme; this menu has been created in my back-end and filled up with some links. What I need to do is match a top-level menu item that is created in ...
0
votes
0answers
6 views

Front-End Editable Table for NOT logged-in users

not logged in users can edit, modify, save data in a predifined table only on one page. They can enter predefined cells with text or checkmark and are able to add new rows. Preferably one user can ...
0
votes
2answers
25 views

WP REST API fetch posts from post type

How can I get all the posts from a specific custom post type with WP REST API (either v1 or v2)? I'm very new to this and trying to understand how to do that. I am currently using WP REST API v2 and ...
-2
votes
0answers
13 views

Need a rating plugin for users to rate multiple sections in a post [on hold]

I run a wordpress blog with a static homepage. And on the homepage of the website I have mentioned multiple methods for treating a particular medical condition. Now, I am looking for some plugin that ...
0
votes
1answer
11 views

How to set value/term of a Woocommerce attribute text field in admin panel?

I am developing a plugin which is supposed to auto-fill the attributes text field. There is a URL text field where user enters URL, on focus out I trigger a AJAX call through which I am able to save ...

15 30 50 per page