All Questions

0
votes
0answers
5 views

wordpress $wp_query->query_vars[ 'page' ] query to fetching url data

I have 2 wordpress pages template pr1.php and pr2.php . The pr1.php has links below that sends data to pr2.php as below 1st: https://my_domain.com/pr2/683/ 2nd: https://my_domain.com/pr2/683b/ 3rd: ...
0
votes
1answer
4 views

ACF meta_key and meta_value break loop

I have a CPT with post type of 'recipe'. I have several ACF Advanced Custom Fields in the CPT. My loop WORKS correctly when it is written like this: <?php // args $args = array( 'numberposts'...
0
votes
0answers
8 views

Ajax post returning full html page as response

I know that this has been frequently asked here, but none of the solutions I find seem to work for me. The issue is as follows: whenever I post the form, I have a console log with the response which ...
2
votes
1answer
5 views

Taxonomy page template changing when using query variables

I'm hoping someone can help me fill in the gaps in my understanding of page templates and query vars: I've registered a custom taxonomy 'stream', and have set up a page template for that taxonomy, ...
0
votes
0answers
6 views

Automatically add shortcodes as quicktags?

Is it possible to take all shortcodes from your site then add them as quicktags in the editor?
0
votes
1answer
9 views

term_link filter rewrite link only applying half of condition?

Can anyone clarify why this function is filtering all terms in the highlight taxonomy, but not filtering for the subscribe-win term? Neither $term->term_id or $term->slug are working. I don't ...
0
votes
0answers
3 views

Posts being overwritten

I run a multi author Wordpress installation and recently posts have started to be overwritten when users are submitting new articles. The previous posts show in revisions rather than being a new ...
0
votes
0answers
4 views

unable to login [on hold]

Warning: Cannot modify header information - headers already sent by (output started at /home/negrowea/public_html/wp-config.php:1) in /home/negrowea/public_html/wp-login.php on line 453 Warning: ...
0
votes
0answers
8 views

I need Slider Advice [on hold]

Can you give me slider that could be easly include in themes which are for trade ( if it is free,if buyer see premium adverts, it is not problem)advice? i dont know how to include popular sliders ...
0
votes
1answer
12 views

$wpdb->get_var returns 0

I use following code to get a number : $where = 'WHERE type = 4 AND active = 1 AND user_id = ' . $user_id ; $user_followed = $wpdb->get_var("SELECT COUNT( * ) AS total FROM {$wpdb->tablex} {$...
0
votes
0answers
2 views

Show and group products by category on checkout page and order confirmations

I am trying to have my CART and CHECKOUT pages display the category that a product belongs to, and also group the products by that category no matter what order they were added to the cart in. I'd ...
0
votes
0answers
9 views

Add Style to text in a PHP block

I have created a slider in header.php, which has a title and a log-in form. I would like to style the title. <div class="half"><?php echo 'Sign Up for New Membership'. do_shortcode( "[mepr-...
0
votes
0answers
3 views

Enable Payment gateway if ACF checkbox in user profile is checked

I have added a way to enable the Woocommerce COD (cash on delivery) payment gateway for a user role of "account holder". /** * Enable COD */ function cod_enable_manager( $available_gateways ) { ...
0
votes
1answer
2 views

how can I add an URL parameter to a rest route using register_rest_route()?

I would like to add a REST route that would looks like .../v1/import/?url=XXX where XXX is an URL. I had a try with register_rest_route('.../v1','import/?url=(?:/(?P<url>\w+))?', array( ...
0
votes
1answer
16 views

Get table parameter and save in meta value

I want to get number_1 and number_2 and save in meta_value in table wp_postmeta. How do I do the same? The id_help_i and the same of the $post-> ID. Some id of the table wp_table_help_i does not ...
0
votes
0answers
4 views

Search box to filter large list of images

I have produced thousands of png images and organised them into two folders on my server as follows: 1901/ John.png Michael.png James.png Mary.png Jane.png 1911/ John.png Michael.png ...
0
votes
0answers
3 views

Deleting Scheduled Actions log

How do i delete past scheduled actions? I have over 110k of log entries how do i deleted them. it only allows me to delete 10 per page a time which means i'd have to do 11,000 pages
0
votes
0answers
4 views

Scroll animation doesnt work [migrated]

i want to use this animation but i couldnt do it.here explains that how to use. <!-- third section - Services --> <div id="services" class="pad-section"> <div class="container"...
0
votes
0answers
10 views

Lead capture offering download via WordPress + Amazon SES

Is it possible to integrate WordPress with Amazon SES this way? I want to collect lead e-mails by providing items to download (e-books, podcasts and other stuff). The flow is: user leaves his mail,...
0
votes
0answers
7 views

Multivendor Marketplace for Event Tickets [on hold]

I would like to know if there are any plugins or simple codes that I could use to cleanly integrate an events calendar plugin with a marketplace. I want to allow users to post events and collect ...
0
votes
0answers
9 views

MySQL Actibity without any active visitors via Google Analytics

I am hosting a WP website on a VPS (Debian) and I noticed that my MySQL service is constantly being processed, even without any active live visitors that I can see on Google Analytics. I am aware ...
0
votes
0answers
9 views

Show the subcategory name based on current product

Hi I can display subcategory name in current product page (single product page) but it showed all the subcategory name. I just want to show subcategory name based on the product selected. I have one ...
0
votes
1answer
9 views

Using post_where filter only on main query NOT sidebard new WP_Query

I have a post where filter set up for a CPT archive page. Which works great but i have other WP_Query objects in the sidebar that dont work because the post_where filter is effecting those Objects ...
0
votes
0answers
8 views

Custom permalink structure causes 404 error on standard wp pages

I have the custom taxonomy called "location" created via the CPT UI plugin and "Custom Structure" of example.com/%location%/%postname%/ in Settings >> Permalinks. I also have below translate rules so ...
0
votes
1answer
9 views

'<script>' tag is changed to '<a>' when configuring Cookie Notice

I'm using WP 5.2.2 and trying to configure a cookie notice banner. I'm using the popular Cookie Notice plugin (v1.2.46). My problem comes that when I configure the Google Analytics script (the one to ...
0
votes
1answer
20 views

Why is my site still showing insecure icon even if I have SSL certificate?

I have a Valid SSL certificate. My home page, About page, and Hire Page are insecure. I have found out my images on those pages are requesting and accessing an image from HTTP. I used Plugin, every ...
-1
votes
0answers
13 views

Using functions.php to hide the `From Our Blog` in WordPress menu page

I'd like to remove the from our blog on the WordPress menu page using php. Is there any way of doing it in functions.php?
0
votes
0answers
9 views

Taxonomy Query String convert to Url

In my site, I use woocommerce and a plugin filter to combine wordpress category with custom taxonomies. If I in my sidebar filter I select one category and one custom taxonomy i have this link ...
0
votes
0answers
15 views

Does exist a product customization with optional features?

This is more like an orientation question, I don't know if doing this in WordPress is possible, there's a project where there are different types of boats, every boat has its unique features, some of ...
0
votes
1answer
14 views

Wordpress AJAX PHP(html) file that is within Wordpress Loop

I have a Wordpress AJAX call that is working in as much as it is able to get raw data from a PHP file. The AJAX is using the admin-ajax.php file. However, the PHP file I need to get is within the loop ...
-1
votes
0answers
13 views

How to finish Wordpress websites faster [on hold]

Hello we are a small start-up company consists of 3 developers we develop webapps using wordpress We develop website very slow for example we developed this webapp http://zumra.start-solutions.net/ ...
0
votes
1answer
10 views

Plugin sponsorship in repository

Is there a way how to put company logo/link to my plugin in WP official repository, that sponsored my development?
0
votes
1answer
14 views

How to create interactive charts on WordPress?

I want to create a responsive website using WordPress, and the website will contain interactive charts. I am deciding on what graphing libraries (e.g. python plotly) or analytics tools (e.g. Sisense, ...
0
votes
0answers
5 views

Custom Post Permalink Change Including Parent Post

I am working on a plugin for custom posts. I need to remove the custom post slug. I used this code. function remove_cpt_slug( $post_link, $post ) { if ( 'cars' === $post->post_type &&...
0
votes
1answer
9 views

Multiple wordpress installations with same plugin folder (Apache Virtualhost)

I'm trying to use a single plugins folder for multiple websites to standardize my websites.Do you know any way to use Symlinks in WordPress? In a single shared folder send the plugins to various ...
0
votes
0answers
12 views

WooCommerce Cart Order Grouping

Is there a way I can "group" potential "orders" in my cart? I have a site, which has a sort of menu... where-in I have created a batch of items in order to build out a "mix n match" type of meal. ...
0
votes
2answers
18 views

Problem in applying active class to wordpress menu

I am learning wordpress by my own and this is the code of html template. <div class="collapse navbar-collapse" id="ftco-nav"> <ul class="navbar-nav ml-auto"> <...
0
votes
0answers
16 views

MY database error Lost connection to MySQL

Am getting this error, please help
0
votes
1answer
24 views

how to change wp upload directory to another domain directory

both main and second domain (addon domain ) are in same host i want to find a way to change upload directory to another directory that located in another domain root. default location (first location)...
0
votes
0answers
14 views

WordPress Starter Content: can't access the created posts

I'm having a big pain with starter content feature of Wordpress. At the moment I'm using the hook customize_save_after to get the posts, using the normal function I use to get posts get_posts. It's ...
0
votes
0answers
17 views

when i click all post section in wordpress dashboard

when i click all post section in wordpress dashboard it takes longer time to load or sometimes its crashes.However other section in wordpress dashboard loads quickly can u help me fix It crashes &...
0
votes
2answers
19 views

Custom post types saved as basic post

I made a custom post type filters for others post types. The slug is a concatenation like "filters-" . $custom-post-type. And the custom post type appears correctly in the menu : My problem is when ...
0
votes
0answers
4 views

Override translation, only if new translation exist

I wanna override some parts of WooCommerce from English to Swedish - but just some parts. The translations I wanna override is kind of unique to my theme so therefore I felt like the best solution ...
0
votes
0answers
8 views

Tax exclusive if coupon applied else tax inclusive in items

I have setup taxes inclusive for all my items and filled MRP in price. But now I want to apply tax inclusive if customer didn't applied coupon i.e. buying on MRP. But when customer applies coupon I ...
0
votes
0answers
8 views

Add Product Permalink Before Order Item Meta

I am using the following code to add product permalink in woocommerce admin order page- function fpd_custom_order_item_values($_product) { $url = $_product->get_permalink(); echo '<p&...
0
votes
1answer
16 views

How to import Reusable Blocks programatically?

How to import Reusable Blocks programatically? I would supply 20 or 30 .json files with Reusable Blocks and the theme admin would be able to use them in their posts or pages. How could I import them ...
0
votes
0answers
12 views

Filter woocommerce variation attribute values based on selected date

I am trying to make a product. This product is some sort of arrangement. The product with options should look like this: Choose date Choose breakfast location Choose drink location Choose diner ...
-5
votes
0answers
16 views

how I can show post when I'm select category in visual composer custom [on hold]

<div class="container"> <div class="tab-item tab-by-category home-tab-group" id="tab_life-social" rel=""> <ul class="nav nav-tabs home-tabs" role="tablist"> ...
0
votes
0answers
24 views

ACF don't save the selected value

firstly i created a select dropdownlist using acf that dynamically populate like this: add_filter('acf/load_field/name=chef', 'my_acf_load_chef_field'); function my_acf_load_chef_field( $field ) { ...
0
votes
0answers
19 views

Custom query for custom post type not getting correct post ID

I have written a custom query here: <?php $the_query = new WP_Query( array('post_type' => 'video', 'posts_per_page' => 10, 'post_status' => 'publish') ); ?> <?php if ( $the_query-&...

15 30 50 per page