All Questions

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

Problem with changing email on custom user profile page

According to this question: How to edit a user profile on the front end? I used that code but got this error when try to change user Email: This email is already used by another user. try a ...
0
votes
0answers
3 views

get_the_ID() doesnt work

Here is my query loop: <?php $query = new \WP_Query( $args ); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); ?> I want to call $post ...
0
votes
0answers
3 views

variation.php tmpl-variation-template to show after quantity

I am searching for a function or how can i do it, i want to show tmpl-variation-template after quantity, i have override them it's not working it's working right before quantity. But i am wondering if ...
0
votes
0answers
2 views

How to change all existing post title and content' color

A customer has a Wordpress blog. Last week, it looked normal. Now, suddenly all the post title and content's font color changed into white. Not sure why. Still using the same theme, though. This ...
0
votes
0answers
5 views

How to save a metabox which contains php code as a output

I want to show country flags on smart slider 3.The plugin doesnt work with php codes perfectly.So when I add my php code directly it doesnt work but it works variables like metabox values.So I want to ...
0
votes
0answers
3 views

Javascript to create photo galley from share folder

Hello I am looking for a Javascript code that can pull all photos from my share folder into a webpage. All photos are named as dates in a format yyyy-mm-dd. For example 2020-01-25.JPG (unfortunately ...
0
votes
0answers
8 views

Wordpress/Yoast: How to solve the problem with pagination page?

before I switched to YOAST, I was using All in One SEO but I got some huge problems with it. There were incompatiblliys which made it impossible to further use this plugin. Anyways, I’m facing a ...
0
votes
0answers
9 views

Use custom post type for a store locator

I want to make a store locator. I've registered a cpt named portfolio and I want to add to it all the needed info like latitude and longitude that will be used to display a marker on a leaflet.js map. ...
0
votes
1answer
10 views

Echo short code syntax

I want to make dynamic short code so insert php code of metabox text value to short code. I wrote this: <?php echo do_shortcode("[svg-flag flag=\"".get_post_meta($post->ID, 'ozellikler_text', ...
0
votes
0answers
12 views

Is my way to change WordPress server is correct?

I'm in the process of changing my web host. I'm wondering about the cleanest way to migrate my WordPress blog. I'm far from being a WordPress expert, I only use it to publish a few posts. Could you ...
0
votes
0answers
10 views

Get All WP post Ids

I have a WordPress movie and series theme that I want to create a feature that I can update the information of all posts, so I need to get all the WordPress posts IDs and know how to do that. But ...
0
votes
0answers
13 views

Edit plugin function with a hook

I've just spent 2 days on trying to pass/change an argument in a plugin's function but had no luck so far. Would anyone, please, show me the correct way or solution how to do that? I need to be able ...
0
votes
0answers
8 views

Create Metaboxes dynamically in admin for Pages

I've created in the admin editor of my site homepage a Metabox with an input and a textarea fields. The code works great. However my goal is to allow the admin user to duplicate the Metabox with the ...
0
votes
0answers
6 views

Why do my posts now show on every page?

Running Astra plugin, after toggling some settings in a bid to create a blog-style feed on the 'news' page, my posts are now showing on every single page - not as intended. Any ideas about how I can ...
0
votes
0answers
5 views

How to add image/Text from custom fields on Woocommerce product list in Shop Page or any other page where products are displayed from woocommerce

I tried to find any file to edit or create my custom theme template file for loop of products displayed but I didn't find anything for my custom theme, Please Help Me
0
votes
1answer
12 views

A little stumped - first WordPress theme

I am going through an online Udemy course alongside it I'm building my own little website. The website has 4 pages 1 of them a front page that I've created front-page.php and the rest of the pages ...
-1
votes
0answers
11 views

Portal for autoowners with posts and feeds

I'm new in WordPress and started from Bluehost. Basically - I'm trying to do next things for my site and looking recommendations from experienced developers: Login plugin, which is free or not ...
0
votes
0answers
19 views

Display queried posts in a custom post type & taxonomy loop template

I have two custom post types ('services' and 'case_studies') which one of them (services) is a taxonomy to the other (case_studies). My goal is to display a list at the bottom of 'single-services.php' ...
0
votes
0answers
12 views

Show tax rate on product meta

Hi have variable products, and some variations the tax is 23% others is 6% On product page, on meta product details, I see that the SKU is updated everytime I choose a variation. Just after the SKU, ...
0
votes
0answers
7 views

Personalized Woocommerce Product with text

We have an amazon store that we allow customers to enter text into a text field and is dynamically displayed in real time. They cannot adjust the location of the field. I have been looking for a way ...
0
votes
1answer
14 views

How to get specific attribute from DB

a:3:{ i:0;a:2:{s:21:"wwsd_percent_discount";s:2:"10";s:25:"wwsd_minimum_discount_qrt";s:2:"20";} i:1;a:2:{s:21:"wwsd_percent_discount";s:2:"20";s:25:"wwsd_minimum_discount_qrt";s:2:"50";} i:2;a:...
0
votes
0answers
13 views

How to fix this? [closed]

Every time is something long without spaces it gets outside the box
0
votes
1answer
20 views

Layout Settings in the new Gutenberg editor

Just updated my Wordpress environment to the latest version and saw the Gutenberg editor. It took some digging around but I am able to find almost all of the settings (such as custom fields) I used in ...
0
votes
0answers
8 views

Problem with ajax login/logout and nonces

My current flow is as follows: I use wp_localize_script to generate a nonce which my javascript can use. I pass this nonce with my login and logout request. When I login I touch the dom by removing ...
0
votes
1answer
10 views

WP_Query not returning custom post type

I'm using the below code to try to return the count of custom post types but the query isn't finding anything. I change the post_type to project and it works fine. This is also being used outside of ...
-3
votes
0answers
20 views

Can someone help me with a regex redirect in Yoast? [closed]

I've moved my categories and tags to a different URL. DOMAIN/tags/tag -> DOMAIN/t/tag DOMAIN/Categories/category -> DOMAIN/c/category I only now notice that the redirecting is not working anymore (...
0
votes
0answers
11 views

Is it possible to display the contents of a host system folder in a page or post in Wordpress?

I use Wordpress as a way to manage our home documentation. Our document scanner drops files directly into a SAMBA share on the Ubuntu box that is also running our Wordpress site. Rather than ...
-1
votes
0answers
7 views

Insert Redux in admin submenu

I am trying to insert redux in one of submenus within admin dashboard menu. I already know how to embed redux, build sections and fields. But as far as I know, Redux creates a menu automatically, so ...
0
votes
0answers
13 views

wp-cron.php not being triggered by wp_remote_post in spawn_cron()

I am trying to debug failing publication of scheduled posts. On a completely new wordpress installation, (using the default docker image), scheduled posts fail to get published when the correct time ...
0
votes
1answer
16 views

how do you pull data from two taxonomies?

I have posts loaded from taxonomy, but I'm trying to get the data of another, that's also attached to the same post. In the code below, the main focus is getting $location_slug. Knowing how to get ...
0
votes
0answers
10 views

woocommerce custom header image for each category

I have been reading every post and question for the past 5 hours and cannot find something that works for the theme I am using. I am using wordpress flooring theme for a flooring woocommerce website ...
0
votes
0answers
11 views

Custom Post Type 404 [duplicate]

I've added this code for a custom post type and when i add new servizio, and preview, it shows a 404 page, not working. This is my code: add_action('init', 'weblab_custom_servizi'); function ...
0
votes
0answers
16 views

Want to Display “No Results Page” When There Are No Results for a Particular Month

I have very minimal experience with PHP and am looking for a way to redirect to a "No Results" page when a date is selected with no results. Currently, when you select a date with no results, all ...
0
votes
0answers
11 views

Display custom posts and their childs hierarchicaly

I am working on a support manual. I created a custom post type 'manual' and I want to display an automatic menu of the posts and their childs. It would look like this: Post 1 Post 2 Child post ...
0
votes
1answer
15 views

WordPress Users authentication with Java Application

I have a Java Web App which contains users. On the other side, I have a wordpress installation. I have a requirement that users from my java app should be also avaible in wordpress (in other words: ...
1
vote
0answers
15 views

Preview plugin store details

How can I preview how a new WordPress plugin, which I have not yet submitted for review, will look in the plugins store, e.g. the tile with meta information, logo, compatibility information etc.? ...
0
votes
1answer
12 views

Show thumbnail depending on image width

I'm trying to display the images in Landscape or Portrait mode depending on the width of the image I upload to the "featured image" of each WordPress article. If the width of the image is greater ...
0
votes
0answers
7 views

Get Order details from “woocommerce_order_details_after_order_table”

I want to show "Order details" with certain statuses (2) of the order in short code taken from "woocommerce_order_details_after_order_table". After login, the client is directed to a dashboard where ...
0
votes
0answers
10 views

Replicate value of one ACF field into another

I have a CPT that uses custom fields [created via ACF]. One of them is a repeater type. It works. Among subfields, I have an input field called party_time. In many cases party_time values has format ...
-1
votes
0answers
15 views

Save user_nicename width capital letters

I have a form for change user profile slug (user_nicename). How to save it in DB with capital letters? If I add "aBCdeF", it will save as "abcdef". $user_nicename = 'aBCdeF'; if ($user_nicename !== ...
-2
votes
0answers
20 views

Unable to load method $profile->output();

Structure: - Shortcode/ -- Profile.php - Templates/ -- Profile-card.php What I need help with: So I have profile-card.php where I'm building a template and then inside Shortcode I want to ...
0
votes
1answer
24 views

301 Redirection After Comment

The below code redirects visitors to any page that you want. // Redirect to thank you post after comment add_action('comment_post_redirect', 'redirect_to_thank_page'); function redirect_to_thank_page(...
-2
votes
0answers
9 views

Wordpress wp-admin new-post.php update catgories list via ajax

I have created custom post type and add some categories. Now I want to update categories list on add new post via ajax based on parent category Requirement: When I select Policy Issues of parent ...
0
votes
0answers
10 views

Unable to upload or install plugin in my VVV setup, ngnix access thrown [closed]

I have installed VVV on my local machine. I added a website by editing the config.yml file mysite: repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template hosts: - mysite....
-1
votes
0answers
11 views

Change woocommerce one category image size

I changed on two specific category layout to 3 and 2 columns. Now i can't figure out how can i change picture sizes on these categories, at moment they are upscaled and quality is low. add_filter( '...
0
votes
0answers
6 views

Problems defining a rewrite rule

Using wordpress 5.3.2 and Listify theme, a theme that permits to build business listings using the WP job manager plugin. I have this urls, that works perfectly: https://example.com/index.php?...
-1
votes
1answer
13 views

ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF's on a custom WooCommerce homepage?

I am developing a new theme and have tired out my brain all morning as to why this is not working. Please can someone guide me on how I can include files into the WooCommerce homepage. It is my ...
-1
votes
0answers
10 views

Get Post from CPT group by custom field

I have a custom post type forderung with a custom post field ebene . id | title | ebene 1 | post1 | horror 2 | post2 | action 3 | post3 | horror 4 | post4 | comedy Now i want to list all posts ...
-1
votes
0answers
6 views

YITH Product add on does not show with WooCommerce Multi Currency Premium

I need Help… I sell tickets to the event with different types of add ons in Euro but at the checkout page the prices have to be converted to MDL currency because of the legislation, so the whole way ...
0
votes
2answers
26 views

Custom Background by Page IDs

I use TwentyTwent theme and want to change its background colour by page IDs. I'm not sure but when I check the functions.php, I see below lines which are related to background colours: // ...

15 30 50 per page