All Questions

0
votes
0answers
5 views

Page update error after add nav-walker

I added a bootstrap nav-walker provided on https://github.com/wp-bootstrap/wp-bootstrap-navwalker in my site it is working fine but after adding it i get an error on my page and other places when i am ...
0
votes
1answer
6 views

Adding Post Title from custom post type to another custom post type

I have different CPT and add post title and Feature Image but i want to add post title from one CPT to all CPT post title and feature image. Is this possible to add title and feature image from ...
0
votes
2answers
11 views

How to use query string in URL to display content on the wordpress page

My wordpress page URL is like this https:www.com/thanks-page/?origin_name=Sydney&origin_iata=SYD&destination_name=Ahmedabad&destination_iata=AMD I need to display SYD and AMD in to the ...
0
votes
2answers
12 views

WP_Http response throws “Cannot use object of type WP_Error as array”

My plugin is throwing the error "Cannot use object of type WP_Error as array". The line in question is... $http = new WP_Http(); $response = $http->request( $url, array('timeout' => 20)); if( ...
0
votes
0answers
8 views

Upload edd files to ftp

Do you know the plugin that works with ftp for upload Easy digital download files to another host? I need a plugin that connect to ftp and upload edd files to second hosting
0
votes
0answers
10 views

woocommerce multiple product that shared stock inventory

is there way to have a multiple product that shared stock inventory? I have tried the woocommerce product bundle but doesnt meet my goal. What I need is to have a multiple product that shared stock ...
1
vote
1answer
23 views

Single API call exposed via shortcode with params

I am attempting to create a Plugin with a single shortcode that takes a param to identify which field to grab from my JSON API response. The API returns multiple values, which I am attempting to be ...
0
votes
2answers
18 views

Need help transforming echo to return for use with shortcode

I'm not so good at coding but managed to write a little piece of code to have a shortcode to display a co-authors (co-authors plus plugin) bio/description in posts. The code I came up with is <?...
0
votes
0answers
6 views

Visual Composer: Backend param value sanitation

Is there a way to sanitize the value saved from an element param in the visual composer? I have a custom param that ends up having a JSON value. I want to transform that JSON into a PHP array on save....
0
votes
0answers
13 views

Display Woocommerce attribute name above product title

On the Woocommerce 'shop' page I have the product description below the main image. Underneath that, I have the range name which I managed to display using the 'WooCommerce Show Attributes' plugin. ...
1
vote
1answer
7 views

Trouble creating conditional PHP for nav menu items with children for custom Walker

I'm trying to create a nav menu with a clickable dropdown function but minimize scripting at the same time, so I found out a way to achieve this with an invisible input box and CSS. My only problem is ...
0
votes
0answers
13 views

How to Display Shortcode in the correct location, currently displaying before content after Page Title? [duplicate]

I am having an issue displaying the shortcode in the correct location when using a display child pages query. Can someone fix this for me? Thank you! function show_product_pages() { global $...
0
votes
0answers
7 views

Sort the archive by year

I have a custom post type by the name of companion which allows me to publish articles/posts for a magazine. I applied a custom taxonomy to companion by the name of issueCompanion which acts as ...
0
votes
1answer
12 views

Can’t delete a custom post in front end with custom role

forks! Well, I’m developing a plugin with a custom post type and I need create a front end page with form who allow a custom role (create by third part plugin) create and delete my custom post. But, ...
1
vote
0answers
12 views

How do I enable dynamic content in a theme cached with WP Super Cache?

I've been trying to improve my caching strategies in the themes I build, but I'm having trouble understanding how "Enable dynamic caching" works in WP Super Cache. There's very little information on ...
0
votes
0answers
6 views

Need Woocommerce Checkbox to show/hide conditionally

I'm attempting to create a conditional checkbox that shows/hides based on the shipping and billing state of the user during checkout. Currently, I can't find a way to conditionally show this ...
0
votes
0answers
12 views

Custom post type, next and previous links by page title

I have a site that I am converting to wordpress and have a problem with the next post and previous post, because the default value is to sort the posts by date order. However, I want to sort the next ...
1
vote
2answers
16 views

Running a script before absolutely everything

I want to run a script before any Wordpress stuff kicks in. I know it's wrong but currently I have my function in the index.php file before the below code: {{{MY FUNCTION IS HERE}}} /** * Front to ...
0
votes
0answers
7 views

code php to link user to categories and photos to product

is a bit complex what i need and if someone can do it i can pay for it. I have made an website fro the company i work but is more complex, a already did the easy part.The website we sell photos we do ...
0
votes
0answers
20 views

Download doccument on server rather than clients browser

I have made a form which converts to a PDF using jQuery. I am on a shared hosting package and as a result, cannot add any libraries such as wkhtmltopdf on to the server so in a sense am restricted. ...
0
votes
0answers
9 views

Drafts not showing up for custom post type, but number of “Drafts” is?

UPDATE: I just noticed that the issue is happening regardless of the post status(ie Published posts don't show up in the backend or the frontend either, but all posts show up in the database just not ...
0
votes
0answers
7 views

Custom theme update wants to revert to previous version

This theme did not have this problem before 1.1.18. The 1.1.19 version was inadvertently uploaded with the styles.css set to 1.1.18. This theme version was installed and it asked to be updated to 1.1....
0
votes
0answers
10 views

Changing default admin column sorting to an ACF Date Picker field

I'm trying to set the default sorting on a column for my custom post type news. The column sorts fine when the heading is clicked on, but when you first visit the post listing it will only sort by the ...
0
votes
1answer
15 views

$woocommerce->cart is null inside WordPress Rest API

I'm trying to add an item to cart inside a WordPress REST API. This is my code so far: add_action( 'rest_api_init', function () { register_rest_route( 'lufc/v1', '/add-to-cart', array( '...
-1
votes
0answers
26 views

Why processes only the last element of the array?

I use a repeater ACF, I need to wrap the words with links. In the site dashboard, I add a word and it is placed in the $word_quick_links variable, then I need to process these words and wrap them with ...
0
votes
0answers
11 views

Possible to float an a nav <li> up to fill a space? [on hold]

I've got a wordpress footer nav that I am displaying in two columns using a basic css width:50% and float:left. The problem is this causes gaps under the shorter nav items. Is there a good way to ...
1
vote
0answers
9 views

Use gutenberg block editor on plugin page (outside of a post)

I'd like to use the block editor to manage content of the site-wide footer. With the classic editor, I simply need to register a plugin page and add a field that's just a wp_editor instance. I recall ...
0
votes
0answers
12 views

Auto approve new users if their username is included in a predefined list

I need to have users' registration in my website as Subscribers. Each user will provide a username. I need to have a list that contains a company's usernames and then I need to automatically approve ...
0
votes
1answer
13 views

How can I say if a URL is a post, page, or taxonomy archive?

I'm studying for SEO purposes how a few WordPress sites (that aren't mine) are organized, link structure architecture and so on. Therefore I need to know if a specific URL of a website is a post, ...
0
votes
1answer
8 views

What happens if I replace the files of a WordPress site with another WordPress site?

I accidentally copied all the files of a WordPress development site (ver 5.1.1) and overwrote another WordPress development site (ver 5.0.4). I did not copy over the database. Each site shares some ...
0
votes
1answer
9 views

Add Previous | Next arrows near to related products

Greatings, Is there a way to make Previous and Next arrows to related products, cross sell products?
0
votes
0answers
17 views

How can I trigger a javascript function after a post update on edit post screen in wordpress admin panel?

I use Wordpress 5.2.2 and I develop a custom theme. On my theme I added a metabox who show an input type="text". I want to execute a JS function (AJAX or other) after the AJAX done by WordPress to ...
0
votes
0answers
6 views

In woocommerce, is there any way to empty wordpress default mini cart when order placed?

In my site, when some user type place an order then I change their order status "processed" to "review". But when I'm doing that my mini cart is not empty. So is there any to empty mini cart force ...
0
votes
0answers
8 views

What might cause a parse / syntax error in wp-tinymce.js?

To elaborate on the title....I have a site were the Visual editor either doesn't appear to display the text content (text is white on white), or the option to switch to and from the visual editor ...
0
votes
1answer
11 views

Creating categories while importing via CSV

I have a CSV that I am importing via a custom plugin I made. This will create a CPT that has a few ACF fields. This CPT is called Formula, and it has a taxonomy associated with it called formula_type. ...
0
votes
1answer
18 views

How to get category lists by name or slug

Currently I am able to get all categories but I want only few categories to display based on name or slug for example. $categories = get_categories('accessibility','wcag', 'abc'); is this possible ?...
0
votes
2answers
24 views

Connecting to external oracle database

So I'm trying to connect to an external db in order to access/update information located on a different non-wordpress database (oracle). I tried constructing a new wpdb object (as suggested by many ...
0
votes
0answers
8 views

looking to translate VIEW PROFIL and LOGIN in French in my theme wplms

I'm looking to translate VIEW PROFIL and LOGIN in French in my theme wplms, but I can not do it with loco translate. Please help me. Thank you
0
votes
1answer
11 views

Editing a Search Form

I am working on a search form in my Wordpress site. It has an advance search box in which there is an Advance button, clicking which drops custom filters to include. https://ibb.co/R7DFC1F >> I want ...
0
votes
0answers
10 views

Custom meta fields not showing up in WP_Response Object via custom endpoint

I created my own Custom Post Type called person and a corresponding end route. I can modify my posts with the endpoint, using functions as wp_update_post,wp_insert_post and get_posts. I am facing a ...
0
votes
0answers
15 views

website not reachable with http://example.com [migrated]

For some time I have a Wordpress website running on my NAS. The DNS settings are that A-records point www.example and example.com to my IP address. When I enter example.com or www.example.com or ...
0
votes
2answers
18 views

Woocommerce- Display products list by tag

<div class="row"> <?php $taxonomyName = "product_tag"; if($taxonomyname = "latest-product"){ //This gets top layer terms only. This is done by setting parent to 0. $parent_terms = ...
0
votes
1answer
20 views

Custom Endpoints not working

First time creating custom endpoints. Ill be fetching posts from this site from another wordpres install. Here is my plugin code. /** * Add endpoint URLs */ public function __construct(){ ...
-1
votes
0answers
17 views

Solve my single post page content margin [on hold]

See my adjusted picture and try to solve my problem? How to make post content picture 2 like picture 1?
0
votes
0answers
9 views

Polylang WP plugin: How to hide flag dropdown i menu? [on hold]

1) I have installed Polylang WP plugin on my website and added the language switcher in the menu (Displays language names). Now it is showing both language names AND the flag dropdown. I would like to ...
0
votes
1answer
20 views

WP_Query for custom post type and category_id not working

I am tring to implement custom filter for The Event Calendar. I have used this code $args = array( 'post_type' => 'tribe_events', 'meta_key' => '_EventStartDate', 'meta_query' => ...
2
votes
3answers
46 views

Enable errors PHP Wordpress 5.2

Since Wordpress 5.2 can not display errors on the site. The constants "WP_DEBUG" et "WP_DEBUG_DISPLAY" doesn't work. The following message is always displayed : "The site is experiencing technical ...
0
votes
1answer
26 views

Form validation before submitting

I have a form which converts to pdf on submit. I have added some validation to the form but it does not seem to work. I have tested in Codepen and JSfiddle and the code works fine but on Wordpress it ...
-1
votes
0answers
7 views

wpbakery : make row scroll horizontally for pricing box in mobile version [on hold]

hi there i use wpbakery and theme provide pricing box shortcode . thw problem is that my client want to disply pricing box like in please help
0
votes
0answers
9 views

How can I add plugins submenu at the toolbar on different roles in wordpress?

I want to add a menu at the toolbar of the backend wordpress but the problem is there is submenu on that plugin and also roles in it.

15 30 50 per page