All Questions

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

how can default_content filter tell if content will load in block editor or classic editor?

In short, I want to use the default_content filter to return slightly different content depending on if it will be used in the block editor or not (eg. the quicktags or tinymce editor) - is there any ...
-1
votes
0answers
4 views

Is there a way that i can add WooCommerce sorting/ordering function on divi shop module ? like

// Add "Add to Cart" buttons in Divi shop pages add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 ); Found it somewhere, can i also add the sorting function ...
0
votes
0answers
8 views

Is there a way to late trigger oembeds?

Sometimes, with the theme I am working on creating, the posts that are only oembed do not display and I have to refresh the page to see them. I assume that there is a function that triggers to make ...
-1
votes
0answers
9 views

NOOB QUESTION: In what ways can i customize woocomerce shop page under divi theme?

My shop needs that sorting , and count result from the shop page also that price filter which I found that doesn't work on divi shop module. NEED RECOMENDATIONS if i need to resort to 3rd-party paid ...
1
vote
0answers
14 views

Uncaught Error: Call to undefined function mysql_connect() - Wordpress installation

Trying to install wordpress without xamp on my local machine. Version info: Wordpress: 5.2.3 PHP: 7.3.9 Apache: 2.4.41 When accessing this url -http://localhost:8080/wordpress/wp-admin/install.php, ...
-1
votes
0answers
6 views

Showing PPOM Fields to the vendor menu

Is it possible to show the PPOM Fields plugin in the vendor menu? I am trying to add it to these blocks I want to give to the vendors the chance to add custom inputs for personalisation. Searched ...
1
vote
0answers
7 views

How to check a post exist when the permalink has post id in it?

This is my permalink structure /%post_id%-%postname%/ https://example.com/in/140521-test-post/ https://example.com/us/140524-second-post/ How can I check test-post exist or not? I'm using wpml ...
1
vote
2answers
14 views

Shortcode under a Shortcode Multiple times Possible?

[shortcode] [shortcode1 title="variable text"] Some text[/shortcode1] [shortcode1 title="variable text"] Some text[/shortcode1] [shortcode1 title="variable text"] Some text[/shortcode1] [...
0
votes
1answer
12 views

WPML - Hook when language is switched (change user language)

I would like to change the logged in user's language (if someone is logged in) when they change the language in front-end. I'm using the WPML Multilingual CMS plugin in my Wordpress website. I've ...
0
votes
0answers
8 views

Delete certain attachment fields only

I am using formidable and below is my hook code. The code deletes all attachments but i would like to delete only certain upload files . Is there a code that I can modify and add field number to be ...
0
votes
1answer
10 views

Hide price and add to cart button on product page only

I’m using Datafeedr to show price comparison sets on a product page. The price comparison table opens up dynamically once the page is loaded. But because I want people to follow the link to the ...
0
votes
0answers
11 views

Changing Wordpress media location and upload path to sub-domain not working

I am trying to change the location of all Wordpress media to a subdomain located above the site root ie, above public_html. I updated the wp-config setting to: define('UPLOADS', 'https://cdn.mysite....
0
votes
0answers
12 views

Can Gutenberg be used as an editor on a page?

I have a few dozen WordPress sites using the Classic Editor. When an Editor/Author/User logs in, they cannot access "wp-admin". All "admin" functions use custom pages on the front end of the site. ...
0
votes
1answer
11 views

Create a form and have custom menu display based on user answers?

I want to create a form that will ask users different questions and then have the following page show up with a sidebar menu customized to the answers that the user put in the form. How would I go ...
0
votes
0answers
6 views

REST API allow POST for particular Cutom Post Type

I created custom end points for my custom post types to get only data that I want like title, content and featured image and few custom fields. I am getting REST json data fine. I am building an app ...
0
votes
0answers
11 views

jQuery UI upgrade in wordpress

Has anybody successfully upgraded jQuery UI version within Wordpress ? Currently Wordpress includes an outdated version and I am looking to upgrade but having some difficulty as file structure seems ...
-1
votes
0answers
7 views

to display header version in every pages using meta box [on hold]

![Plese Share Your answer to create custom meta form for header for all pages ]1
0
votes
0answers
13 views

Finding the original post date

I somehow used a plugin that changed all the post dates on my blog to the same date. Is there anyway to find the original post date and change it back?
0
votes
1answer
19 views

How to define the slug for my custom plugin?

I have created a custom plugin. How do I define its slug? To clarify, if I attach a custom PHP function to the manage_plugins_custom_column hook, and in that function print the value of the $...
0
votes
1answer
15 views

How to get different Related Posts

For some reason most of our blog pages show the same or very similar related posts Im using this code: $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach($...
0
votes
0answers
8 views

Download PDF on CF7 form submission

I have tried doing this using a suggestion made previously but I cannot seem to make it work. The file did not download. I just need for the form to download the file when the form is submitted. You ...
0
votes
1answer
10 views

How To Use htaccess to Rewrite Link Structure for a Page that is Generated Programatcially

My site uses a plugin Easy Digital Downloads, which creates products that are of url structure, sitename/downloads/{Product} I want to change them to sitename/{product} For example, https://milyin....
0
votes
0answers
5 views

WooCommerce display custom checkout field on my account orders table

I've had a good root around and have got so far, but am now a bit stuck. I started with the code snippets plugin and then found a few bits on SkyVerge: https://www.skyverge.com/blog/adding-columns-...
0
votes
0answers
5 views

The output of wp_oembed_get appears to ignore local blog URLs

The output of wp_oembed_get appears to ignore local blog URLs - why is this? If I set some var, say, $mylink which contains the URL to a post on my blog. Then I call wp_oembed_get($mylink) it ...
0
votes
1answer
19 views

Log in only by email and no username

Can you tell me a function to insert in the functions.php file to remove the login via username option? I would like the user to be able to log in only with his registered email.
1
vote
0answers
11 views

creating custom archive template within plugin for custom post type using archive_template filter

I'm trying to create category and tags archive template from my plugin that has custom post type 'product'. I used the below code to display search results in template file located at plugin_dir_url(...
1
vote
1answer
20 views

Display related products based on 2 specific product attributes values in WooCommerce

I am looking for solution to display related product by multiple product attributes. I've tried "Display Related products for a specific product attribute value in single product pages " StackOverFlow ...
1
vote
0answers
17 views

How do i improve my custom pagination?

So this is my current pagination Currently i am working with total of 6 pages so it shows 1 2 3 .. 5 6 (in the image below) 5 and 6 being the second last and last But when i reach the number 5 it ...
-2
votes
1answer
15 views

Notification plugin like StackExchange inbox or Facebook notifications [on hold]

I have a wordpress website where when user logs in they redirect to a dashboard. I want to notify the user of any new update or new feature or any other thing. Is there a plugin to do the same. One ...
1
vote
0answers
13 views

having issue while uploading An error occured in the upload. Please try again later

First there are lots of question with this title. I have went through all but any of this not solving my issue. I am having error while uploading image on the server Things i have tried upload ...
1
vote
0answers
14 views

Is it possible to restrict all admin pages except theme customisation and storefront using plugin?

I want to restrict all admin pages except theme customise. I am wp_set_auth_cookie() for auto login. I don't need any other admin pages. I write code in my plugin add_action( 'wp_loaded', '...
1
vote
0answers
11 views

Enabling users to upload files

I have a page template, where users can upload images. I use this piece of code for opening modal for media (js; only part of a code): image_frame = wp.media({ title: 'Select Media', multiple : '...
4
votes
1answer
16 views

Where to store some per-template preferences?

I'm in the midst of reworking a site and in trying to make the backend as friendly as possible I'm trying to avoid hard-coding some of my options in template files. I've got a few archive pages where ...
0
votes
0answers
19 views

My Site is not filtering posts as per Categories

So I made a custom taxonomy like this and named it blog-category function homekong_blog_categories() { $labels = array( 'name' => _x( 'Blog Categories', 'taxonomy general ...
1
vote
0answers
21 views

pagination in WP rest api

We have made a custom API to get all the post in descending order and we want to add pagination in that API. I have read other questions and answers but didn't get the idea. Can anyone explain to me ...
1
vote
0answers
15 views

Undefined index: hook_suffix

I am getting "Undefined index: hook_suffix" error in Wordpress while trying to execute the below. Here $class_name extends MyRegularClass and MyRegularClass extends WP_List_Table. Please help. $...
0
votes
1answer
10 views

How to Schedule Cronjobs for start of every month and year

I have been trying to run a function at first of every month, and first of every year. And i wanted to run at 12am exact. Below I have shown the function. When is schedule it for daily it works ...
1
vote
0answers
15 views

Wordpress Bootstrap Problem

I'm having a problem with my theme's compatibility with bootstrap. So the checkboxes on my website appear double (). So I enqueued the latest Bootstrap CDN (CSS and Scripts) on my child theme and ...
0
votes
0answers
6 views

User Does Not Have Access to all Translated versions of LearnDash Course when Purchased via WooCommerce

I currently have a WordPress website running with the following configuration: Server WordPress 5.2.3 PHP 7.3.7 MySQL 5.6.40 Plugins WooCommerce 3.7.0 LearnDash 3.0.6.1 WPML 4.2.7.1 I am having ...
-1
votes
0answers
8 views

Looking for theme/plugin for activities booking and support for multivendor and woocommerce [on hold]

I am looking for a nice theme free/paid (preferrably free) for an activities listing wordpress site. able to search and list based on types, dates, location woocommerce for buying allow vendors to ...
0
votes
0answers
9 views

htaccess authentication on a Wordpress/Woocommerce site = trouble for users

To begin with, you should know that I'm a copy and paste guy. When it comes to regular expressions, to me it means someone isn't smiling or angry looking; they just have a regular expression. So, I ...
-1
votes
0answers
9 views

Woocommerce product shortcode one column mobile responsive

[product_page id=”xxx”] On mobile, this shortcode shows the product as two tiny columns with a tiny picture to the left and cut off product info to the right. On mobile, I need the shortcode to ...
0
votes
0answers
13 views

Why do I have two different permalinks?

Some of the pages on my site are getting the permalink /parent_page1/parent_page2/page_name. However, some of them are getting a permalink /home/1828-2/parent_page2/page_name. Why would some of my ...
0
votes
0answers
29 views

Retrieve data using wpdb to use for customizer controls

So I have the following code: add_action('customize_register', 'homepage_sections'); //products function homepage_sections($wp_customize){ $wp_customize->add_panel('homepage_sections', array( ...
0
votes
1answer
19 views

how to add custom html and css to wordpress

for eg if i want to add this code from this site https://codepen.io/tamak/pen/ApLcq html Tutorial Animated rollOut bounce flash pulse rubberBand swing shake tada wobble bounceIn ...
1
vote
0answers
13 views

Is it possible to use Snap Scrolling?

I would like to add snap points to my WP website, but am not sure how or if it's even possible. The CSS properties for such an animation aren't accessible on WordPress.
0
votes
0answers
10 views

Add new Add Page button

I would like to add a new button next to the Add New button when viewing the list of pages in the WP admin. I would like this button to create a new page, but set the page template to a specific one. ...
0
votes
0answers
8 views

Is there a way to test if a URL is part of the current blog?

In a scenario where, say, your plugin or theme has been given a URL. You want to know, is this URL a URL from this very blog? How would you test if it is?
0
votes
1answer
9 views

GiveWP - is there any free nice looking themes?

GiveWP is a popular crowdfunding plugin. However, I cant find a theme for this. Is there a free theme for GiveWP crowdfunding ? https://givewp.com/
-1
votes
1answer
26 views

IS there any reason not to include javascript in my own post's embeds?

I'm looking at customising the embeds of posts for a theme I am creating. Looking at header-embed.php in Theme_Compat I see that the head has the following class="no-js". Does this mean that ...

15 30 50 per page