All Questions

1
vote
1answer
15 views

oEmbed 404 errors when trying to use embed block

When trying to add a Youtube Embed Block in the Gutenberg editor, I'm seeing these 404 errors in the browser console: GET https://example.com/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube....
0
votes
0answers
13 views

Unable to autoplay and loop a cinemagraph from Imgur

I've tried a number of different codes but they don't seem to work. This is my current one, and although it loads fine, it doesn't autoplay or loop, and if I hit play, it would either not loop, or ...
0
votes
0answers
12 views

Another site within WordPress page, disabling 404 error for pages that exist but outside of WP system

TLDR; Is there a way to disable WordPress's 404 feature for certain pages? On one domain, I am running a WordPress site and, under the same domain, I am also trying to run another site parallel to ...
0
votes
1answer
10 views

API getting null values with wp_remote_post

I'm trying to post some data to an API and I keep getting null values in the fields. My PHP code: $url = 'https://apiconnector.com/v2/address-books/136517/contacts'; $username = 'apiuser'; $...
0
votes
1answer
23 views

All Images not calling alt text

I am having trouble with the alt text on my wordpress.com website. I am using a theme I coded myself. From what I recall, if I added alt text to an image in the Media Library it would insert into the ...
0
votes
1answer
14 views

How to extend the area from text label to div where a click will select a radio button? [on hold]

I would like to allow a click anywhere inside the div to select a radio button. Currently, the mouse must be over the text label. Clicks elsewhere do not set the radio-button choice. I tried putting ...
-3
votes
3answers
32 views

Is safe to use native WordPress comments system? [on hold]

Native WP comments system requires only display name and email to leave a comment. So if I know the email of a "well-known" person, I can leave a comment using his/her identity (and gravatar also). Is ...
0
votes
0answers
21 views

How to for an interactive map: pluggin or need a developer?

The idea is to create an interactive map to be embedded onto a website. The gist: Anyone can click on the map to signal something and send a photo, video or message that will appear on the map at ...
0
votes
0answers
16 views

An error appeared in the console in the priority-menu.js

Im on WordPress engine latest version. The site maxg5.ru The console appeared errors in the file priority-menu.js. Because of this error in the mobile version, menu items are displayed in the wrong ...
-1
votes
2answers
19 views

How to create a page with a form programmatically in WP?

I made some research and found a way how to create custom pages using content (post) types. However, I do not want to create a new post type, I just want to create a page having a certain URL (/form) ...
0
votes
2answers
26 views

Is it possible to remove editor from a custom product type?

I want to remove the editor and set up only the excerpt to a custom product type (WooCommerce) in my theme, is this possible? This is how i add my custom product type to the WooCommerce product type ...
0
votes
1answer
26 views

how can i pass this attribute in this shortcode?

Only catname works. but how can I show other value? here the full code: https://pastebin.com/RweNnSP0
0
votes
1answer
12 views

Get url of product's images (woocommerce)

What happen when a post (product) didnt have a guid,because it has the same image with another product ? For example: Query1: select guid from wp_posts where post_type='attachment' and ...
0
votes
0answers
20 views

Is it safe to add INDEX to a column in Wordpress database?

I made this custom code that makes Comment into Review with star-rating. The star is saved as comment_karma. In the Product Archive page, I want to show text like this: "25 people 5-starred this" in ...
-1
votes
1answer
8 views

pass dynamic value to page to pull in categorised post cards

our developers are telling us that we must create 1 template per category to achieve this scenario: we are creating dynamic product pages we have a separate app that stores all the product attributes ...
0
votes
2answers
14 views

Hide Posts In Back-end/Admin Based On User's (Pseudo) Privileges Controlled by ACF

I'd like to disable access to posts in the back-end/Admin from a user that doesn't have the privilege to view those posts. This will function similar to the Author role however this "privilege" is ...
-1
votes
0answers
16 views

Activate Theme After Purchase Code Verification

I want to protect my themes, by adding a function to activate it only for valid purchases. I know, this not a full proof solution, but I want to do this. For example, When a user installs the theme,...
0
votes
0answers
6 views

Limit attachment caption characters using a filter hook

How can I limit attachment caption characters by using a filter hook?
-1
votes
1answer
13 views

Show different image per menu link on menu column [on hold]

I have a Wordpress Woocommerce site and I'm using megamenu with HTML blocks edited with Visual Composer plugin. My menu items are all links and I have a column with an image. I need that on mouse ...
0
votes
0answers
11 views

Single post showing 404 not found page (permalink problem)

Using WordPress' default post type, I'd like everything to be filed under /blog/. For example: /blog/[parent category]/[child category]/[post permalink]/ Here's an example post: Parent category: ...
1
vote
1answer
15 views

Change WooCommerce product price based on category and GEO IP country

I have a very specific question. In Belgium we need to add a BEBAT tax when you sell batteries. I'm now trying to figure out how I can tackle this. The code below works until a certain part so I hope ...
0
votes
1answer
25 views

Handling PHP/HTML inside the output of a shortcode function

I'm not sure what I'm doing wrong, but the output of my custom shortcode isn't producing on the front end of the page. I need to load a script from within the output code of a shortcode function. ...
0
votes
0answers
24 views

Including content into an add_shortcode() function

my_html.php <?php global $wp; $op = get_option( 'mcc_d' ); $post_title = get_the_title(); isset( $this->op['mcc_d_text'] ) ? $mcc_d_text = $this->op['mcc_d_text'] : $mcc_d_text = ''; $...
-1
votes
0answers
19 views

Turn a big WordPress blog into a static website? [on hold]

I have a big problem with my WordPress blog, no host wants to store it, as there is dynamic content on all posts pages like post-viewers/counters or any other dynamic content with the current amount ...
-2
votes
0answers
16 views

Get variation image from term slug [on hold]

I am developing new features into the Woocommerce Swatches plugin: https://woocommerce.com/products/variation-swatches-and-photos/ What I want is to use the variation images for the swatch images so ...
0
votes
2answers
27 views

How to display quote format by preg_match function?

I have defined quote post format for the theme: // Add post-formats for theme add_theme_support( 'post-formats', array( 'quote', ) ); After it, I want to display quote from the content. For ...
0
votes
1answer
20 views

Yoast - Custom Taxonomy - primary category

I have a Custom Taxonomy with the name country. I would like to display the primary category only. I have the yoast plugin installed and that is how I'm setting the primary category. I'm using this ...
0
votes
0answers
16 views

Wordpress Page 2 of Posts not Showing results, but if i select a Category first, then results show fine?

I'm having problems with my Blog listing. It shows results on the initial index.php page, but as soon as i click my pagination links to view results on page 2 or 3 etc it says in the Meta Title "Page ...
0
votes
1answer
19 views

Videos Post Type with Custom Filters

Basically, I am trying to achieve exactly same as in this link: https://www.fitnessblender.com/videos In my WordPress site, the first thing I did was creating a post type 'videos'. I am not sure ...
0
votes
0answers
14 views

Run function for specific user only

I've created following function to run a stylesheet for the admin area, but I want to runt it only for 'shop_manager' this user role and for others, it should not make any modifications from that ...
-2
votes
0answers
14 views

Seating arrangement plugin? [on hold]

Do you know any Wordpress plugins that work with WooCommerce box office and can include seating arrangement on the emailed ticket ??? thanks in advance
-1
votes
0answers
14 views

I want to remove tab on woocommerce product edit page [on hold]

I'm using the flatsome theme and it's having UX Builder, but I want to remove UX builder from woocommerce product editor page [refer screenshot] for the different user role. Will anybody help me, I'm ...
0
votes
0answers
10 views

WC Lightbox, Zoom and Slider not loading

I have run the following code within my functions.php, however Lightbox, Zoom and the Slider ALL do not work. The CSS seems to load for the Swipe, however no javascript files are being loaded. I have ...
0
votes
0answers
37 views

Wp_Query Post per page not working?

I have specified the post per page to be 3 as arg but it does not seems to work, all the post are being shown up. Not sure why i works if i enable no paging false but pagination shows up. Array ( ...
0
votes
1answer
18 views

How to remove WooCommerce Plugin some specific features [on hold]

I need to know how I can remove some features in WooCommerce Plugin, I mean Add to Cart Button, My Account page, Cart page, Checkout Options, etc? I only need to show the Shop page in my project and ...
0
votes
0answers
7 views

How to add a simple music player in post edit page?

I always have an audio link in edit post pages. I want to add a simple player to listen to them before publishing. I read this post but don't know how to add it in edit post page, not in post pages.
0
votes
1answer
14 views

metabox dosn't save with checkbox of post_type values order by taxonomy

Please me!!!! Itried thow weeks and I search but without any result I can't save meta box that has both checkbox i need your help as soon as possible this is my code callback my metabox : $terms = ...
0
votes
0answers
36 views

How can I set cookies on my posts so that I can get view count of that post [duplicate]

Can anyone help with the solution? This is my post and I have created a custom column to get view counts on my single post. I'm want to keep a track of views for every single post. I'm trying to set a ...
0
votes
0answers
19 views

Hide Draft Posts from search results

I have a search text box in eduma theme courses page, when i searched any course it shows the draft courses also as search result, i don't want draft or pending courses will show in search result, the ...
0
votes
1answer
18 views

Adding video to a Wordpress website

I have just configured a new Wordpress install, and everything is working correctly. The only difference between this site and the other Wordpress sites that I run is this one is going to be heavily ...
0
votes
1answer
33 views

How to keep HTML form field that is conditional hidden with javasript hidden after page reload?

I have an html form in which I conditionally hide a field with javascript if an option is selected in the dropdown. The javascript condition works fine but when the page is reloaded the condition is ...
0
votes
1answer
17 views

How can I delete the word `Category:` from page titles? [duplicate]

If I installed a new WordPress with twentysixteen theme and went to uncategorized page, I will see at the title something like Category: Uncategorized how can I remove the category: word from pages ...
0
votes
0answers
15 views

Jetpack Sorry, we couldn't connect your store woocommecres [on hold]

i install word press and woocommecres in the woocommrerces jectpack want setup i revise this error Sorry, we couldn't connect your store to Jetpack Sorry! We tried, but we couldn't connect ...
0
votes
0answers
18 views

Site Health Status: How to install bcmath and exif

Wordpress New version Gives this warning on site health PHP modules perform most of the tasks on the server that make your site run. Any changes to these must be made by your server administrator. ...
0
votes
1answer
31 views

Where in code to replace content before display of page?

I wish to make a replacement in all pages of a WordPress installation, after the page content has been read from the database and before it is displayed on visitor screen (of course). Where in the ...
-2
votes
1answer
39 views

Is there any point to using wp_unique_post_slug?

From what I can tell, wp_insert_post will automatically append a -# to your post slug. So why does wp_unique_post_slug exist? Is it just there for legacy purposes or is there still a good reason to ...
0
votes
0answers
14 views

Adjust the width of the video on the homepage

There is a video that automatically plays on the homepage of my website https://shrpn.net/. How do I adjust the dimension width of the video on the mobile version and the desktop version? Currently, ...
1
vote
1answer
25 views

Remove pagination from WooCommerce product categories on admin edit navigation menus

I am creating a WooCommerce store with a very big nested menu structure. Is there a way to stop my product categories from paginating? I need them to all show in one big list so that I can use Ctrl+...
0
votes
1answer
23 views

Custom roles and capabilities media not work right

Help with new user wordpress capabilities and roles custom. The media not work upload and display images in galery. image error: https://i.imgur.com/1bPbcAm.png code: if ( get_role('user_products')...
1
vote
1answer
30 views

Get rid of product images mobile swipe functionality from WooCommerce single product [on hold]

On mobile, is there a way to remove the function that allows you to swipe with your finger to scroll through the product images? I just want users to be able to touch the thumbnails and have the ...

15 30 50 per page