All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Authorize.Net CIM for WooCommerce is not providing me with Payment Tokens

The Auth.NET WooCommerce gateway is not providing me with any Payment Tokens. That is to say, $order->get_payment_tokens() doesn't seem to be returning any. Am I using get_payment_tokens() ...
0
votes
0answers
5 views

style woocommerce checkout form fields

Is there any way to remove or modify the markup of woocommerce billing and shippings fields? As I can understand I need to use the add_filter function, but I'm not able to figure out how this can help ...
1
vote
1answer
12 views

jquery not calling php function

I just can't seem to get my jquery to call my php handler function in my plugin. Please help. TQ UPDATED : I updated the codes. It is working now. My php file // INIT function nizam_scripts() { ...
0
votes
0answers
6 views

Customizing the oEmbed field to loop and disable up next queue for dailymotion video

Hey I am using cpt and ACF. I have an oEmbed field in which I want to loop video and disable relate video (up next queue for dailymotion )for which I have this code ---- `?php the_field('video_embedd')...
0
votes
0answers
9 views

What are the disadvantages of using template_redirect for restrictions

We can use template_redirect action to check if the user has authorized to view a specific post or page and redirect to different page. What's the disadvantages or issues of using template_redirect ...
0
votes
0answers
8 views

Change Image in Mobile Search Results

When searching my company, "Tattini Boots", on a mobile device you will see that the following cut off image is displayed next to the search result (see image below). This is not the image that I have ...
0
votes
1answer
13 views

Query arg not available on init

I'm adding my query arg as such: add_filter( 'query_vars', function( $qvars ) { $qvars[] = 'my_query_var'; return $qvars; }); And when I do: add_action( 'init', function() { $string = ...
0
votes
1answer
9 views

Replace URL with Site Title in Search Results

When searching my company on a mobile device "Tattini Boots". You can see that the URL is displayed vs. the site title at the top (view image below). I am using Wordpress and was wondering where ...
0
votes
0answers
11 views

Display menu locations in all sites of a multi site, and display name of menu attached to each location

I have a multi site network setup. I am trying to list all menu locations for all sites, so I tried the following code: global $wpdb; $table_blogs = $wpdb->prefix . 'blogs'; $blogs_results = $...
0
votes
0answers
12 views

Variation name in $product->get_name()

On product page there are custom variations displayed so user can select different variations. On cart page after getting product name $product->get_name(), name has variation name|description ...
1
vote
1answer
19 views

When can I safely `wp_set_auth_cookie`?

I've built a small, but working code of logging in an user based on his ID: $user_to_login = get_user_by( 'id', 1 ); // Check if user exists if( $user_to_login ) { wp_set_auth_cookie( $...
0
votes
0answers
8 views

How to get Angular app working in Wordpress plugin?

I am working on a project that requires Angular to be loaded in a Wordpress plugin, and am running into some snage getting it working. After some trial and error, the final error I ran into was: main-...
1
vote
1answer
13 views

Bypassing wp_signon with a cookie that I have

I'm trying to build a simple way to give access to users that I want under my account. As I see, WordPress stores two sessions ID: wordpress_logged_in_% and wordpress_. I was wondering, is there no ...
0
votes
0answers
13 views

developing a wordpress plugin, have a few PHP Woocommerce related coding questions

Background: I hired a programmer to create a schema markup plugin for me, the job was done but a few things have left that need to be added. We added a separate code where it adds fields such as "...
0
votes
0answers
8 views

customize_controls_enqueue_scripts doesn't fire from within my plugin

I have a plugin that builds a Class which handles injecting Customizer features. Within it I am inserting: Customizer Panel > Section > Settings/Controls The controls I am I am injecting a Select ...
0
votes
1answer
11 views

Site url is not showing the home page

Marraxxxx.online is my website url, when i go to it, it gives me blanc page, only when i go to Marraxxxx.online/home the proper home page shows up correctly, how i can solve this plz? I want the ...
0
votes
1answer
11 views

ACF repeater field with meta_query

How can I use a repeater field with meta_query I have a repeater field with some text values only and have a form that sends variables to a page where I get the value and storage a value which is the ...
0
votes
1answer
12 views

Should I set a page as “No-index” if I include it's content within the front-Page.php via this method?

So I set my home page to "Your latest posts", and included this bit of code to get the info from a pre-defined page so that I can edit my home page, and get access to a "recent posts" grid with ...
0
votes
0answers
10 views

logo wont show on any of my the wordpress theme

So I'm using oceanwp theme. I upload a logo and it wont override the original logo. So I decided to switch themes. Same issue. My uploaded logo won't show. my site: www.magnagoldenhealing.com
1
vote
1answer
8 views

Woocommerce get billing state manually

Im modifying the receipts for the email admin notifications with woocommerce filter "woocommerce_email_recipient_new_order" Im conditioning them to the state wich the order is billed. For this there ...
0
votes
0answers
9 views

Omit image captions from get_the_content()

I use a theme that calls get_the_content() to display short excerpts of the latest blog posts on the home page. Now I noticed that the excerpt sometimes starts with an image caption, if the blog post ...
0
votes
0answers
9 views

CMB2 toolkit: Compare 2 Dates and validate the Time

Hello i am using the CMB2-toolkit for Wordpress: https://github.com/CMB2/CMB2/wiki/Field-Types I have a Problem where i have 2 Datetimes, where one is the Starting-Time and the other is the Ending ...
0
votes
1answer
12 views

Have CSS Class Added with `is_page()` WP function

I have a nav <li> item where I add a page_active CSS class when a submenu page is visited. This works all OK when one of the pages is visited, but I can't get it to add the class when the second ...
0
votes
0answers
10 views

wordpress post category shows double`

my question is i wanted to created a filter for example portfolio filter with mix it up java script plugin i have one problem i wanted to show only one post even if it has been assigned multiple ...
0
votes
0answers
5 views

Undefined offset in media.php

Recently debug.log (WP 5.3.2) grew to 17GB because of tons of entries like this: [17-Jan-2020 16:29:01 UTC] PHP Notice: Undefined offset: 1 in /wp-includes/media.php on line 790 [17-Jan-2020 ...
0
votes
0answers
3 views

Nextcloud integration with wordpress

We have a contact form on our website and we want to allow user to upload pdf file. We would like to uploaded file to be in turn uploaded to our nextcloud system. Could anyone please tell me if such ...
0
votes
1answer
12 views

Can't check if a post has thumbnail adding filter to get_post_metadata()

I need to set fake thumbnails to all posts which have yet no a thumbnail. I use the code from the link core.trac.wordpress.org/ticket/40547#comment:1 But I can't check if a post already has a ...
0
votes
1answer
11 views

Execute plugin for specific user role only

I have a custom developed plugin which I would only like to execute for one particular user role. Within the plugin's main (top level) file I have the following which I believe initialises the plugin (...
0
votes
1answer
10 views

Custom theme development additional pages

I am developing a new theme based on my html portfolio. I understand the hierarchy and actually have it working 100% in Wordpress. My confusion comes when trying to figure out the best place to put ...
0
votes
0answers
5 views

“Restricted: Image width must not exceed…” error

When a client tries to upload image files he sometimes gets an error similar to the one shown below. This is a recent issue and the behaviour is unpredictable because the pixel size limits seem to ...
0
votes
1answer
17 views

Trying to get pagination working on WP_Query() post grid

So I've been developing my own theme as a learning experience, and I'm at a loss regarding how to get pagination working. I've tried several things before getting to this point and asking, I just seem ...
0
votes
0answers
10 views

Need to return a list based on Slug

I need a search field to return only a specific slug when the user types it. Basically, I need to create pages for students and each student page will be displayed only when user types the page slug ...
0
votes
0answers
10 views

Add Plugin options as subpage to Theme options page

I have my own Theme with an options page. Now I am developing a new Plugin which should have an options page that should be a subpage of the Theme options page. Theme options.php: <?php function ...
0
votes
2answers
16 views

How to validate custom fields for a custom post type before insert?

I'd like to know how to validate custom fields and return error notice (if necessary) before a custom post type is inserted into the database. After a little research I found one similar question ...
1
vote
0answers
16 views

CORS & Remote access to WP via RestAPI

I have built an app which enables the manager of many WP sites to make RestAPI GET, POST, PUT & DELETE requests which work perfectly when using them from this Apps, when the WP site are hosted on ...
0
votes
0answers
16 views

How to make tabulator ajax call in wordpress?

As per tabulator documentation the ajax request can be made using the format like this Ajax documentiation : http://tabulator.info/docs/4.5/data#ajax var table = new Tabulator("#example-table", { ...
0
votes
0answers
12 views

Is there any kind of theme on WordPress to sell my own movies?

Hope you all are doing well. Sorry if it is non-related topic in this website, but I was struggling to find an answer for my question. I would like to create a website on WordPress where I could put ...
0
votes
2answers
22 views

write custom woocommerce templates and forms

I've started to customize the woocommerce default templates by using the hooks as is suggested on the documentations. I have two question about this aspect, I want to understand if I can write my ...
0
votes
1answer
18 views

How to output only blockquotes content from recent posts in a widget?

I created a simple widget that displays recent post titles. How can I only display the content that is between < blockquote >< /blockquote > from recent posts? For example, all my posts have a ...
0
votes
1answer
13 views

Something adding an excessive meta description

I have a WordPress running with Woocommerce and a commercial theme. My problem is that something is adding an extra meta tag(og:description) and it is getting on my nerve since it's content which is ...
0
votes
0answers
15 views

How to change meta description length? [closed]

I want to change the length of meta description and using hook 'wpseo_metadesc' but it is not working
-1
votes
0answers
12 views

Migrate Drupal into Wordpress

I want to Migrate Drupal site into Wordpress! I have to migrate Pages, Posts, Categories, Articles etc. There's a lot of posts and a lot of categories. And Surely, the point is not to loose any posts'...
0
votes
5answers
32 views

What is the best option to convert my WordPress website to French Language?

I have my WordPress website in English language and now my client want to convert that website in the French Language also. So, how I can clone my website in French Language. Any help is much ...
0
votes
1answer
17 views

Woocommerce product editor does not add br

When I add content to woocommerce product editor, it does not add br (new line), when I push the enter key, so the content on the website is in one line. Any ideas, how to resolve this issue? I ...
0
votes
1answer
13 views

WordPress function for 1 to for many

I have this function: add_filter( 'prdctfltr_show_filter', 'my_hide_filter_on_category_function_jkbg4iu3b' ); function my_hide_filter_on_category_function_jkbg4iu3b() { if ( is_product_category( '...
0
votes
0answers
11 views

Rest API: sending an image linked to a remotely posted ..post

I am building an app which will enable the user to manage / send posts to the WP sites he will be managing, remotely, this from the same Web app, without accessing any of the WP sites themselves , ...
0
votes
0answers
10 views

Woocommerce Useless Image Requests

My installation is WordPress 5.3.2, Woocommerce 3.8.1, StoreFront 2.5.3, no other plug-ins. I have created one variable product with one image. When my browser hits the product page it asks for three ...
0
votes
0answers
16 views

My WP-Admin is showing a blank screen

When I tried to open the WP-Admin of my website, it is showing the blank screen. The Wp-login.php is opening but after the login, it is showing the blank screen. So, I first moved my files and DB ...
0
votes
0answers
26 views

How to extract alt attached image in a shorter way?

I am currently extracting the post attachment image (note: NOT the featured image, but a simple attachment img) this way: (functions.php file) function haruki($post_id) { global $post; $...
0
votes
0answers
7 views

link to edit a post has empty target

I open the admin dashboard and navigate to "Posts" I see the normal list of my posts On some post I can click and the editor opens (everything is normal) BUT: On some post the link, which should be ...

15 30 50 per page