All Questions

2
votes
2answers
37 views

can not upload file .vtt on wordpress 5.0.1

I updated my site to wordpress 5.0.1, but now I can not upload file .vtt anymore. This function works properly on wordpress 4.9.8
0
votes
0answers
3 views

Possible to stay on Version 4?

The recent security Update to WP 5.0.1 also brough an update with Version 4 to 4.9.9. I got a clients project which where build on swamp land ages ago. Every Update is Hoping nothing will happen. ...
3
votes
2answers
1k views

pre_set_site_transient_update_plugins wont call on hosted webspace

I am trying to use pre_set_site_transient_update_plugins to update my plugin from a GitHub repository. For that I am using this example. On my Dev-System (MAMP for Mac Version 2.2) everything is fine....
0
votes
1answer
4 views

Multisite has SSL certificate, but media library is still http://

Our multisite WordPress installation has a URL of https://xx.com for the main domain, and - for example, https://yy.xx.com as a subsite. We're using WP's in-built domain mapping feature. Media ...
0
votes
1answer
9 views

Add width & height attributes to Gutenberg’s image output?

Images inserted via Gutenberg don't have width & height attribute by default. I'd like to use those for lazy-loading purposes so image is positioned correctly. Is there a hook or something to ...
0
votes
0answers
6 views

Wp function > Shortcode with SQL Query

actual i have the following problem I`ve an DB with informations like sku/gtin, price, url, name... now i try to create a shortcode which selects the data basend on one sku my Code is function ...
5
votes
2answers
6k views

How to fix pagination after rewriting url? ie. www.site.com/players/type/pro/page/3/

I have a custom post type of players, and archive-players.php lists them all at an address such as www.site.com/players. I'm then using a url like www.site.com/players?type=pro to list another page ...
0
votes
0answers
7 views

WPALLIMPORT- Mismatch data in images meta ( description )filed?

Im using wpallimport plugin from very long time. this is first time Im facing this issue. This all data for 1 post. Now here how i use wpallimport meta fields everything seems work good, just face ...
0
votes
1answer
2k views

How do I remove social buttons from the “Blog” section of my theme?

I have a specific question about the blog section of my site. It is located here: www.newangleanalytics.com/blog If you click on the article, you will notice three social media button at the bottom. ...
0
votes
0answers
10 views

WP_Query is not returned correctly outside of WordPress

I am adding the following code in functions.php and it works fine: function posts_per_day_by_authorid( $userid, $post_type, $year, $month, $day ) { $query = new WP_Query( array( 'author'...
0
votes
0answers
7 views

Add custom attribute to product's HTML to woocommerce cart page

I'm trying to add a data-attribute to WooCommerce's cart page. The cart page populates a table with each row being a product that has been added to the cart. I'm able to add a data attribute into ...
0
votes
1answer
997 views

Check authentication credentials using WP REST API

I'm using the WP REST API in combination with the Application Passwords plugin. What I would like to do is simply check to make sure a username and password combination (encoded as a base64 string) is ...
0
votes
0answers
11 views

Gutenberg: Can't leave Classic Paragraph [on hold]

Just when I started to warm up to Gutenberg, out of a sudden the interface has changed and all text blocks in my new post have changed to classic paragraphs. Converting to blocks does not help. Can't ...
0
votes
1answer
842 views

how to get value of a select box in custom widget wordpress

I am trying to make a custom widget. My codes are as follows: class techno_widget extends WP_Widget { function __construct() { parent::__construct( 'techno_widget', __('Recent ...
1
vote
2answers
16 views

Why wordpress kicks me back to the dashboard of xampp?

Somehow when I was working with my local dev environment, I have made some mistakes in some php files which I could not figure it out. So, I have decided to copy the files from the 'public_html' and ...
0
votes
1answer
10 views

Multiple WordPress sites with different theme and plugin sharing the same content

I want run Multiple Wordpress websites with different theme and plugin using one database where the content remains the same in all websites. 1- site.com - Main site 2- siteb.com - Should use site....
3
votes
2answers
2k views

meta_query where value is equal to given value

I currently have this custom query which I am trying to filter the product (paintings) by artist. $artistID = $_GET['artist_id']; $args = array( ...
0
votes
1answer
32 views

why does not my wp_query work?

i want to display archive of posts for post type of post. so i created a page template and insert the following codes but i display nothing. why? what should i do? <?php $postnumcat = new ...
1
vote
1answer
65 views

Shortcode returns escaped HTML tags

To put things in context, I'm using Gantry on WordPress, which is bundled with Timber and Twig. I have this code, basic, make-your-text-bold shortcode // Add Shortcode function bold_text_shortcode( $...
0
votes
0answers
10 views

How to isolate uploads folders in multisite

In my Wordpress multisite subdomains, a link to a file in uploads folder of a subdomain can be accessed regardless of what subdomain is in the url. For example, both: http://sub2.example.com/wp-...
0
votes
0answers
5 views

Is it Helpful to transfer all media library to another host?

I want to transfer all media library including all images to a download host and my goal is the speed of loading website improve for example my website is example.com and all images load from cdn....
4
votes
2answers
2k views

Multisite: use media from one site vs. copying the same media to all language sites?

This is a business site with product images. I have a multisite installation with 3 languages in 3 directories which will later be mapped to completely separate domains by the host when it's finished....
0
votes
1answer
12 views

How to change url for taxonomy pages?

My Wordpress default category has 'news' category term. I created custom post type with name 'artist' and custom taxonomy named 'genre'. Now what I set in permalink section is below custom structure -...
1
vote
1answer
18 views

Include Site 1 Posts in Query for Sub Sites

So I have a Primary site that posts announcements about the sub sites, for each of those posts I have a meta value that the user sets for which site those announcements apply too. On each of those sub ...
0
votes
1answer
20 views

Order by Date Custom Field

I'm trying to display a list of upcoming football matches in order of kick off. The code I currently have lists the dates in the correct order but the posts ordering is incorrect. $previews_new_loop =...
1
vote
1answer
714 views

Hourly scheduled wp_cron job keeps getting rescheduled

Every time I refresh the page, my cron job update_backup_now_feed seems to have its timer reset. I'm using a plugin called "crontrol" that displays the time until next call, and every time I refresh ...
0
votes
1answer
148 views

Local WordPress installation doesn't crop images

When I try to crop an image in the WordPress backend area of my custom theme, I get the message "There has been an error cropping your image". I have it set up on a local machine using XAMPP. When I ...
0
votes
1answer
932 views

Page with the same name of a category

I've a category, let's say "testcat". I want to create some pages which the final url should be "http://example.com/testcat/pagename". To do this, I should create a page named "testcat" and then a ...
1
vote
3answers
36 views

Add custom variable in Contact Form 7 mail body

I set cookie for my users to know from which source they come to the site and I want when user contact us their message comes with their cookie as well. So that I created a new shortcode and added in ...
0
votes
0answers
9 views

403 Error when using save buttons

I just installed Wordpress on my home server. Everything was working fine until a hit a save button in a plugin and got a 403 error saying I didn’t have access to ap-admin/options.php. Strangely ...
0
votes
2answers
12 views

Missing background image setting in admin of twenty nineteen

I have installed fresh Wordpress 5.0 with twenty nineteen theme. In admin panel for home page below colors setting a link to setting background image should be visible. See https://www.youtube.com/...
1
vote
1answer
782 views

List with categories, subcategories and posts of custom posttype

I am trying to query a list with all Categories, Subcategories and Posts of a custom post type. e.g.: Maincat1 -Subcat1 -Post1 -Post2 -Subcat2 -Subcat3 Maincat2 -Subcat3 -...
1
vote
1answer
14 views

Changing user_nicename

user_nicename has the same value with user_login. I want to change user_nicename value only by using code snippet into functions.php or wp-config.php. Is it possible without using phpmyadmin or any ...
0
votes
0answers
9 views

QR code google form response through wordpress site

i created a attendance sheet by using google form for my students and that form response URL was converted into a qr code. when the the QR code was scanned google sheet will simply add that response. ...
1
vote
1answer
2k views

Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?

I have a custom post type with a custom taxonomy (to show some "best practice" examples on my website). On the single-post-page (single-bestpractice.php) I wanted to show all the terms (categories) ...
0
votes
2answers
215 views

Show first posts with custom field not empty and order all by title

I have a custom post type called "products". My goal is to make my custom query that I have on homepage and also the search query show first the posts that have a custom field called "id_number" not ...
0
votes
2answers
990 views

It is possible to add extra button under the 'publish' button in the post of wordpress? and how?

Actually i need such a function , when we click on the "publish" button of the post in word press, after publish automatically go this page on the desired link().. 2nd :if we add a button "return ...
0
votes
1answer
15 views

I can't figure out what's wrong with this statement. $wpdb->query update

I'm trying to use the $wpdb-query method, but can't seem to get it to work. I get a 500 error when I try the following: $update_status = $wpdb->query($wpdb->prepare("UPDATE {$wpdb->prefix}...
1
vote
1answer
729 views

Force rewrite to SSL on subpages?

Right now the domain www.atsusacon.be is setup to force https and it works. The site also correctly links all to https. (there are no occurences of http in the mysql anywhere). But if you are ...
4
votes
2answers
2k views

Disabling Comment Notifications for Post Author

I am trying to disable comment notifications for post authors (or anyone else besides the site's admin) for a client's site. I've attempted to create a plugin that uses the pluggable function ...
0
votes
1answer
746 views

Custom post status

I am trying to work out how to add a set of new publish statuses to custom post types in wordpress as I would like to do the following: User signs in and uses the custom post type to fill in the ...
-1
votes
2answers
108 views
+50

Theme making direct ajax calls to theme folder

So, I'm using a wordpress theme (unfortunately, I'm not able to get support for the theme any longer), and it has a contact form that makes a direct ajax call to a php file in the theme's "includes" ...
3
votes
4answers
8k views

What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?

In the media tab, upload of a valid image file results in display of "HTTP error". Reload of the media tab shows that the image did upload and resize, though. Browser debug tools show that on upload,...
1
vote
2answers
914 views

How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field

I have searched high and low for a solution and couldn't find anything; hopefully someone here more skilled than myself can lend a hand. I have two testimonial videos (from a video custom post type) ...
0
votes
0answers
9 views

Advanced Custom Fields add custom fields in user meta table after user is created [on hold]

How do I create programmatically using Advanced Custom Fields Pro on a new user new entries for profile data over ACF? Getting to the point of creating a new user by a script I want to be able to ...
0
votes
0answers
17 views

Homepage was doubled and cannot be adjusted in Elements

Could anyone help us with a problem with WordPress website? We met with a problem that the homepage was doubled and we couldn't adjust it in Elements. We can create new items in Elements and it works ...
2
votes
3answers
3k views

wp_update_nav_menu_item() to insert categories

In the script below, I'm attempting to dynamically add categories to a custom menu. Everything works great, except for the fact that the categories do not have hyperlinks. What am I missing in ...
0
votes
1answer
710 views

How do I access a remote database with a local MAMP development install?

Okay so I have a wordpress website that I've been developing locally on my netbook. I want to be able to develop it both on my netbook and on my desktop so in order to ease the process and not have to ...
3
votes
2answers
995 views

How to add custom comment fields but *only on the comment reply form*?

I've been searching high and low for this but can't find anything that explains how to add custom fields to only the reply form. I've seen and got working custom fields on the comment form, but when a ...
0
votes
1answer
20 views

How can I modify the default reset (lost) password email text?

I found some similar questions on here, but was unable to apply the solutions that were provided. The standard password reset email that Wordpress is sending does not provide a clickable url for ...

15 30 50 per page