All Questions

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

When admin select the value from the dropdown list , the new information is added to particular selected item and display on that page?

e.g if admin add information and select Bahria town from dropdown list then the information is added on the baheria town page .
0
votes
0answers
7 views

How do I add a div class to the posts in a filter and not the entire filter element?

I am having some troubles with the Isotope filter gallery, as discussed in my Stackoverflow question here. As per the first point of the accepted answer, I need to add the class .isotope, to the ...
0
votes
0answers
8 views

Changing user role after subscription is found

Im using Opal Membership plugin for real estate website. The problem is that it's only working for properties and i want to restrict other content as well (like pages, posts etc.) I want to use ...
0
votes
0answers
9 views

wp_login_form won't redirect

I'm trying to change this particular part in order to redirect after login to a specific page on my site. Let's say as an example: example.com/test. I replaced the "'/?s=&category=&...
0
votes
0answers
4 views

How avoid error 404 if I add a %post_id% to slug for custom post type? (post_type/%post_id%-%slug%/)?

I want to have permalinks which will be look like: example.com/mypost/%post-id%-%slug%/ And the following code do it. But when I try to go to url of the post... I get error 404. I have this code: To ...
0
votes
1answer
6 views

some one help . search not jump to search page

i have form search : <form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="GET" role="form" class="searchform"> <div class=&...
0
votes
0answers
5 views

SMTP succeeds on new user notifications, but fails all else. How to debug it?

I am using Easy WP SMTP plugin with a Microsoft Office 365 mail account. I use this setup without issue on one of my sites, but on the current site it fails most of the time. For instance, if I ...
0
votes
0answers
4 views

Removing wp-json link tag and what's it gonna cost?

I have a simple question. I want to keep my code as simple as possible so I removed all the unwanted head tags including REST API related tags (<link rel="https://api.w.org/" href="...
0
votes
0answers
7 views

Post exchange and points defuction

I want to make post exchange I am using mycred I want to know how to display user posts only if the user has points And when a user post is viewed he lose one point And when he view other user post he ...
0
votes
0answers
5 views

Display two items from a custom post type that have 2 different taxonomy terms but output different HTML in the loop for one of those terms

sorry if my question title does not make much sense, I couldn't think of a good way of wording it. Essentially, I currently have some custom loop code on single.php that does the following: If a ...
0
votes
0answers
7 views

How to hook into a public static function from a custom plugin

This function exists in woocommerce plugin includes. I want to be able to hook into it, I think is the term after a form on a checkout page has been submitted to a third party api, I want to take that ...
0
votes
0answers
7 views

How to change Route respond To A specific Path?

To increase site loading time and decrease the pressure on my website I have decided to host files(js,css,images) in other hosting, like google storage or amazon aws, problem is that I already ...
0
votes
0answers
13 views

Making internal rest requests non-blocking?

I'm making a call to an internal endpoint in order to try and speed up a task. I don't need to wait for the task (that awaits at that endpoint) to complete for my script to move on, but it's still ...
0
votes
0answers
8 views

When the posts are registered as draft, I get 2 notifications to my email address. Actually I should get 1 notification

I wrote a code to get notified when a post is made on the site or when a post is saved as a draft. It works but sends 2 mail instead of 1. I tried it in its simplest form, but it didn't improve. I ...
0
votes
0answers
9 views

Show order with status complete in performance analytics woocommerce [closed]

Hi i need to display orders with status completed in performance section of analytics, any hook to do this. I want to have completed order in dispay stats and to show in performance analytics. ...
0
votes
0answers
8 views

Add a word after the post url if it is within a specific category

Normal status for articles URLS: example.com/23423/ example.com/23412/ I want the article URL to become [example.com/23412/?video] only if it exists in a specific category. For example I have 2 ...
0
votes
1answer
14 views

Wordpress shortcode returns the data before <!DOCTYPE html>

I try to make a form with shortcode. Main plugin file: require "functions.php"; function form_shortcode(){ ob_start(); include "form.php"; return ...
0
votes
1answer
7 views

PHP | left join avg query give me Array()

I'm trying to implement a query within my code that gives me the ability to calculate the average value between the ratings received and the number of ratings per post, and sort posts from the one ...
0
votes
1answer
4 views

Custom Taxonomy Isotope Grid - Filter Buttons Not Working

Am trying to integrate Isotope with WordPress to create a filterable portfolio grid. It's displaying the Project categories (my custom post type and taxonomy) but not showing posts from that category ...
0
votes
0answers
8 views

Block direct access to thank you pages

I have parent pages which are downloadable resources. On these pages, people will fill in a form and then be redirected to a thank you page. The thank you pages are child pages. I would like to block ...
0
votes
0answers
13 views

Really dynamic routes in Wordpress

My customer asked me to implement really dynamic URL rewriting for Wordpress site to looks like https://cpkrus.ru. Shown URL depends not on previously entered URL (regex), but based on context - ...
0
votes
0answers
8 views

How to apply discount for registered users

I have to build a learning platform where users can buy courses. I have decided to use LearnDash. But a unique scenario here is that I have to apply a 20% discount on the course price if the user ...
0
votes
0answers
10 views

Configuring separate permalinks for posts and archives

I'm working on a site where posts are organised by category/year/month/posts. /%category%/%year%/%monthnum%/%postname%/ I've had a request to provide the site category/year/month archives (/%category%/...
0
votes
0answers
10 views

Diferents Url who load in the same template

I'm creating a online store with wordpress. Could I do this? Example with Nodejs in the backend and pug in the frontend i can do: An url https://anything/animals/:animal/ and load an unique template ...
0
votes
0answers
13 views

Is it possible to load recaptcha script only in url with fragment identifier (#)?

I have tried various snippets, like this: <?php add_action( 'wp_print_scripts', 'load_captcha_script', 100 ); function load_captcha_script() { if ( !is_page( '#register' ) ) { ...
0
votes
0answers
8 views

Ajax Form Issues using Lightsail (AWS)

I am having issues with a contact form using Ajax and jQuery. I followed this guide: https://www.youtube.com/watch?v=LYvx_L9ESn0, and it works on my local server (Laragon), by that laragon catches the ...
0
votes
0answers
8 views

How can I Include Portfolio and Gallery Filters in Main Menu?

How can I include links in my main menu header that filter the portfolio gallery, instead of having a separate section of filters at the bottom? My guess is that it should be a simple addition in the ...
0
votes
2answers
14 views

Add to Cart button displaying twice on Shop Page Woocommerce

recently noticed that the add to cart button is appearing twice on my shop page - https://www.widescenes.com/products/nisi-filters/filter-kits/ . Can't work out if it is conflicting with another plug-...
0
votes
0answers
12 views

WordPress WP_Query make mysql time out

I got a problem that I install XAMPP on my computer to develop,and recently I want to use WordPress to expand two functions: 1.posts pinned and deadline is required (the post will not pinned when time ...
0
votes
0answers
8 views

previous_posts_link & next_posts_link doesn't generate any output

Hey I am using a WPQuery to loop through and show blog categories in posts. It's in a page tempplate. has 21 posts and I want them to show 10 per page with navigation links for next pages of 10 posts ...
0
votes
1answer
12 views

ACF: How can I publish values of ACF fields in a loop while using wp_query?

I'm using ACF to add fields to a custom post type. I've created an instance of WP_Query to set up a loop. Within the loop I can publish the standard fields using the_title() and the_content(). However,...
0
votes
0answers
12 views

i have two versions of a plugin

I made two versions of a bibliographic plugin. In one use class wp_list_table + CRUD with a specific table (web_datos). In another use post_type + custom fields. Both work, although improvements are ...
0
votes
1answer
21 views

Whitespace between product image and gallery on initial load of lightbox product page

I'm trying to understand why whitespace appears between the main product image and the product gallery on this page: http://etica.co.nz/product/mini-icosidodecahedron-ring-bearer-box/ Clicking on the ...
0
votes
1answer
12 views

WooCommerce return 404 in the product page

I am making an Ecommerce website with the plugin: OCEANWP. I had an issue with links of products, because they aren't the same so i changed it in Setting > Permalinks, but after when I go to the ...
1
vote
0answers
18 views

WordPress automatically downscaled images larger that original

I have a real head head-scratcher. I am trying to boost the performance of my wife's website. One of the things I identified as potential issue was the size of image files. I am somewhat aware photo ...
0
votes
1answer
18 views

Insert content above an embedded video inside Wordress' php the_content

I'm a long time beginner in Wordpress theming (i do bits here and there for myself) and have a question. I run a very large website and i'm trying to redesign it (responsive etc) and have run into a ...
0
votes
0answers
8 views

Wordpress form to generate a pin on a map [closed]

Would anyone suggest a wp plugin to generate a pin which would be added onto already existing ones on a map from a wpform? Thanks in advance
0
votes
0answers
9 views

get_results query with accent

I'm trying to do an sql query and I don't understand something I get a value with $ _POST, this value is equal to 'définition'. I made this request: $sql = "SELECT DISTINCT * FROM". $ wpdb-&...
0
votes
0answers
5 views

Custom form on submit or on click of save changes take me to home page of settings

I have opened a submenu page called "My App Settings". There, I render the following form: <div class="wrap"> <h1>My App Settings</h1> <form id="form-...
0
votes
0answers
12 views

Disable custom taxonomy by name in function

I need delete some custom taxonomy with function. Users creates new taxonomies, but when user create any disabled taxonomy (for example named "custom_taxonomy1") so WP remove it with ...
0
votes
0answers
12 views

How to crop image in WordPress with aspect ratio for any size of image

I am using following function for cropping image in wordpress and I want to crop image in 1:1 aspect ratio. When I upload large image compared to specified size in function it works well but when I ...
0
votes
1answer
13 views

Add Link to PHP message

This feels like a noob question and I can't find references out there on how to do it. But I am adding a custom message the the default WP Login Page. I want to add a hyperlink (to a support page on ...
0
votes
0answers
10 views

Redirect After Failed Registration to other Page or Section

How i can redirect the failed registration session to other page or url? Solution on this question seems not working anymore This is my (NOT) WORKING lines, add_action('register_new_user', '...
0
votes
0answers
5 views

Method or plugin to show list of available videos

I need some way to list available videos in a wordpress page. The result should be a JSON, RSS or similar, where people can choose, which video should be exposed. Has someone a snippet where I can ...
0
votes
0answers
9 views

default value options page plugin development

I am trying to create a admin settings page for a plugin using add_options_page. The options page works just fine, but I am having issues setting a default value. I've tried putting the default value ...
0
votes
1answer
10 views

3 posts from each existing category on one page

The following is not working... <?php $categories = get_categories( array( 'orderby' => 'name', 'parent' => 0 ) ); foreach($categories as $category): $args = array( 'cat' => ...
0
votes
0answers
5 views

Attachment pages stealing page slugs

I'm working on remaking a big website with its upload folder already full of many gigabits of images. I just noticed a problem I never noticed with WordPress before: it seems to create attachment ...
0
votes
0answers
12 views

How to cascade Gutenberg SelectControl component

How can I cascade the SelectControl component in Gutenberg editor. I request all the professionals to please help me out from this. I have 8 months of experience with wordpress and near to no ...
0
votes
0answers
13 views

Shortcode in Gutenberg block or do_shortcode

I am wondering which differences there are between to put a shortcode in a Gutenberg block and using the do_shortcode function. In particular, I wonder why the function has_shortcode($post->...
0
votes
0answers
8 views

Wordpress Booking Plugin with Multiple Booking Dates & Time [closed]

I have searched all over internet, and cannot find a WP booking plugin that has or able to customize to "multiple booking dates & times". Hope someone can shine some light...

15 30 50 per page
1
2 3 4 5
2128