All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
744 views

Adding a custom taxonomy to “nav_menu_item”

Does anyone know if there is a way to handle a custom taxonomy for the nav_menu_item built'in post type? When I assign my custom taxonomy to this post type, i don't see any change in the menu editor......
0
votes
1answer
643 views

Add custom menu item metabox in Navigation Settings

I've been imagining a piece of functionality that would extend the WordPress drag and drop menu creation. Essentially adding a custom menu item button that would be used to add different types of ...
0
votes
0answers
8 views

Assign postcode to an area

I am doing a website to offer home services, but my problem is how to assign the client's postcode to different location: I'll be using Latepoint for the booking system. With it, you can offer ...
0
votes
2answers
500 views

How to get_posts where 'menu_order' is more than 0/zero?

Is it possible to get posts where menu_order is more than 0? I have tried this argument when I get_posts() but it doesn't have any effect at all: 'meta_query' => array( 'key' => '...
0
votes
2answers
24 views

Updating the_post content is only working with Twenty Twenty theme

EDIT: Thanks to @mozboz I've got a solution to this. The post has been updated to reflect was I was originally trying to do, and what I am doing now. I am developing a plugin that creates a custom ...
0
votes
0answers
15 views

How Can I Create a Friendly Slug for a Dynamic Page?

I built a dynamic page template that pulls biography information from a MySQL table. The page works fine but the URL is ugly. Officer-Biography/?ID=1 I have a set of canonical slugs that I want to use ...
1
vote
3answers
1k views

How do I fix “Sorry, this file type is not permitted for security reasons”

When I try to upload any PNG file, I get the following error message: I have no plugin or anything installed, that could cause this. I even added the following line in order to fix this: define('...
2
votes
0answers
115 views

Gutenberg Blocks doesn't render correctly when using do_blocks

I'm trying to render a post_content with blocks using the do_blocks function, that takes a gutenberg content, parses every block, and returns an HTML string. The problem is that some blocks aren't ...
-1
votes
0answers
6 views

Woocommerce: Show Active Variation price as Html not Javascript

I need to get xpath value of a variation price which woocommerce does show correctly, however, the variation is parsed through javascript and the xpath code I'm using will not pick up javascript. How ...
1
vote
2answers
888 views

Syncing production with staging

we have a staging server in order to test out plugins and roll out new features and also re designing sites. The issue is that the staging version of the site will be out of sync as soon as new ...
0
votes
0answers
11 views

Wordpress auto RSS feed shows posts in unexpected order

Wordpress auto RSS feed generator showing posts from different years although between the two dates I've been published 100 posts. https://www.secrettelaviv.com/feed?post_type=gd_place
1
vote
2answers
19 views

Create Dynamic SEO Friendly URL for Virtual Page

I have a Wordpress site that is built to be a job listing board, and I'm looking to create SEO friendly URLs based on data that is stored in the database. The URL structure should include the state ...
0
votes
1answer
24 views

Category images are not displaying in WordPress

I have categories list with there respective images. I am able to get the category name and description but I am not getting the category image. I tried the below code. <ul> <?php ...
0
votes
1answer
520 views

mySQL database size large, but tables size less

I have my site hosted with NetworkSolution, and they have a sql database size limit of 300MB. IF the size exceeds this limit we cannot access the wordpress admin dashboard. So currently its showing ...
0
votes
0answers
5 views

How we show dropdown pages values in admin sites When we Click on save button?

add_settings_field ( 'WhattsApp_Advance_Pages_fld', // ID used to identify the field throughout the theme esc_html__('Where you Want To display?', 'Woo-WhattsApp'), /...
0
votes
1answer
27 views

Should I use docker in wordpress production?

My question is, is it a good idea to use docker for a big woocommerce website (more than 100k products)? Or will this incur a noticable performance cost compared to running wordpress straight on the ...
3
votes
2answers
463 views

How to load translation in JavaScript?

I am struggling to load translation in JavaScript for my simple plugin. Translation works for PHP, but not in JS. What seems to be the problem, how can I debug this? I have loaded text domain in my ...
0
votes
1answer
605 views

WordPress database error Duplicate entry for key 'slug'

I have just migrated to a new host and upgraded my Wordpress to 4.9.8 (from 3.9.x, embarrassing I know, plan to keep it up to date from now on). I also went through the process of replacing plugins ...
0
votes
0answers
10 views

Change url of search with parameters

I have a users url now ie: example.com/users and when I search users it goes to: example.com/?s=Joe&cost=100 but I want it to keep the users path in the url instead of dropping it: example.com/...
0
votes
0answers
22 views

How to disable single page for specific posts?

I need to disable single pages for specific posts, but only after specific condition. My code is here: add_shortcode('list-posts-basic', 'ant_post_listing_shortcode'); function ...
0
votes
1answer
14 views

How to target all woocommerce categories that don't have any subcategories in them?

I want to target all pages (product categories) that are displaying the products themselves. My woocommerce settings set to show only categories/subcategories (unless there are none) and then by ...
0
votes
1answer
4k views

Tortoise SVN showing 'Access to '/!svn/me'' forbidden error.

I recently want to commit a change to my WordPress plugin repo but it has been showing 'Access to '/!svn/me' forbidden' error whenever I wanted to commit any changes. Some articles have adviced me to ...
0
votes
0answers
13 views

Is there a Woocommerce hook that fires when applying a coupon but before checking if it's valid?

I want to add an item to the cart (that same item gets discounted with the coupon) upon using a coupon code (with a hook). E.g. when using the coupon code SAMPLECODE, a product is added to the cart ...
0
votes
0answers
22 views

Get specific post in MODAL popup

I need to load posts in modal popup dynamically. I have found many solutions but upon trying nothing works for me. The solutions do not load the modal popup at all. I tried getting the ID from the ...
-2
votes
1answer
12 views

Invalid argument supplied for foreach()

I try ti get some value from a request and display it in a loop. I ve already use this system in an another function and that it worked but in this not. I get the message : Warning: Invalid argument ...
0
votes
2answers
45 views

After creating Custom post type by user delete old one

I have created a form where users update their profile. When a profile is created or updated it creates a CPT called course. The url is the permalink + /course/ + the title of the course /* CREATING ...
0
votes
1answer
607 views

Help wiht adding fullcalendar.io to a WordPress page

I've been trying to add this calendar to my wordpress page. And I've followed the documentation, but it's still not showing up. This is what I've done. I first added this to my child theme functions ...
0
votes
1answer
9 views

WP Redirect with Wild Card Characters

I am using wp_redirect() to restrict access to logged out users and redirect them to login page. Here's my code which works perfecly. function loggedout_post_redirect(){ if ( !is_user_logged_in() &...
2
votes
1answer
816 views

Passing a parameter to a permalink

I'm trying to create permalinks for a page that currently has parameters passed to it. The site was set up by somebody else and I'm not familiar with Wordpress I have various pages which have URLs of ...
0
votes
0answers
13 views

Wordpress not encoding “é”

i have some problem encoding. I m making a plugin and in my table i have insert some words with the "é' but the result of display is �. My tables are utf8_general_ci, in wp config the encoding is ...
0
votes
0answers
9 views

Categories In English version showing not canonical URL, instead shows query search result

I have a multilingual site (WPML), it has Hebrew and English languages. But for some reason in English version categories showing as query string instead of just pass it through URL. What issue can ...
0
votes
0answers
13 views

Modify Maximum upload file size text in Wordpress Media

I'm working with my own plugin development for my website. I need to modify the text of the Maximum Upload file size (post-upload-UI). I tried with the below hooks. wp_handle_upload_prefilter, post-...
0
votes
0answers
5 views

Position image widget in mega menu

I need to add image in mega menu. So I have added image widget in menu. How can I reposition this widget. Currently my menu is showing like this. But I need image only in the right side, and sub ...
0
votes
1answer
21 views

Wordpress Contact form 7 falat error while send an email

Fatal error: Uncaught Error: Call to a member function get_status() on null in /home/mywebsite/public_html/wp-content/plugins/contact-form-7/includes/contact-form.php:732 Stack trace: #0 /home/...
1
vote
1answer
826 views

Admin filter for product SKU?

How can I filter products based on their SKU code? A new column was created in the orders, but I'm having a hard time understanding how I can search for it. I have a column populated with product ...
0
votes
0answers
12 views

Securing WordPress running on Azure platform

We have a static website hosted on Microsoft Azure. Our marketing team wanted a easy way to update it so WordPress was installed on Azure, the site was created, marketing team updates it. A WordPress ...
0
votes
1answer
871 views

How to get sidebar widgets in leftsidebar template

I have created a custom sidebar widgets using below code : register_sidebar(array( 'id' => 'sidebar-widget-1', 'name' => 'Sidebar Widget 1', 'before_widget' => '', ...
1
vote
1answer
966 views

How to display empty stars on products with woocommerce?

How do I display a rating at all times, even if it is empty? This is for woocommerce, meant for product boxes like popular products and new products, doesn't have to show up on single product pages.
0
votes
1answer
15 views

Why does Wordpress want a 512x512 pixel site icon

I get that a site icon needs to be square, but I don't know why it needs to be as large as 512x512 or larger. Can anyone advise why this is/where that image would be used at a resolution higher then ...
0
votes
0answers
5 views

How to do action just when checkbox field is checked in my checkout page?

I'm working in a custom function for my checkout page in woocommerce. And I want to present an additional fee when my checkbox(woocm17) is checked, but i don't know how to do it. I have my code ...
0
votes
1answer
2k views

Site redirecting to http://example.com/wp-signup.php?new=example.com

My hosting provider just moved my newly developed website from my testing domain to the definitive domain. But now my site url say's example.com/wp-signup.php?new=example.com And I don't see the ...
0
votes
0answers
14 views

Adding WordPress Tags to the searched fields in customized search query

I have a website where I need to be able to search for Posts based on title, tags, and content of custom fields. I've made the modifications below to my functions.php file. (Code for including the ...
3
votes
1answer
1k views

How to get a category in a list item class

I am need to know how would I get the category to be dynamically input in a WP_Query This is the code I am using: <li class="<?php the_category(' ')?>"> but the output is breaking. ...
0
votes
0answers
19 views

Display User ID instead of Name or Username

I have BuddyPress installed in my WordPress. I don’t want to display the name or username in the profile of member, instead just User ID, like below Avatar instead of member’s name it will just show ...
0
votes
0answers
17 views

Permissions Script Not Working

I am running a LAMP dev environment on ubuntu 18.04 with wordpress 5.4.2. I found this awesome script meant to make adjusting permissions on wordpress installations easy, getting rid of 403 errors in ...
3
votes
2answers
4k views

Search results don't show products

my website is a woocommerce site and it has blog posts and some pages. My problem is the search box. Everytime I searched it only shows the posts and pages results. It is not showing woocommerce ...
0
votes
4answers
521 views

how to edit source code of specific page in wordpress?

i am taking a hard time to figure how to do it. I have three different pages in my wordpress installation besides the Homepage. I need to edit each one of them separately, remove header, footer and do ...
3
votes
2answers
16k views

Export navigation menu

I want to export all navigation menu's from one site and import the menu's in another site. I have tried to export the tables: wp_posts wp_postmeta wp_terms wp_termmeta wp_term_relationships And ...
1
vote
1answer
1k views

The “Profile Picture” section just disappeared from my User Profile

The "Profile Picture" section just disappeared from my User Profile. How do I get it back? Thanks.
0
votes
1answer
498 views

Why is my custom post type slider only displaying the latest slide?

after a search throughout the already asked questions I couldn't come to a solution to my problem, this one is the closest I found: My custom post type displays the [latest post] I had a slider built ...

15 30 50 per page