All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

Adding more fields to the registration form

Am using Jupiter theme. https://demos.artbees.net/jupiter/labrandeus/ The registration has by default username and password fields. The view for it is defined as below: <?php if (get_option('...
0
votes
2answers
54 views

Subcriber getting multiiple notifications for new comments

This the email i received from a subscriber, i am not sure how to prevent multiple emails from going out.I do not use a plugin just the WordPress native comment mamagent “Notify me when new comments ...
0
votes
0answers
5 views

How to deploy gutenberg on my own

I am new to Wordpress plugin programming and I do not understand how it is possible to create Gutenberg.zip from the Source code (zip) from this link. Note: Of course I could just download the already ...
0
votes
1answer
696 views

Combining custom taxonomy posts with default posts on one archive page

I'm trying to get custom archive posts and default posts combined onto one archive page which I have managed... sort of but I can't get pagination to work either using the pagenavi plugin or the ...
-1
votes
0answers
6 views

Force downloads to be served from a separate page!

How to force downloads to be served from a separate page! Like this site: https://www.softloris.com/internet-download-manager-for-windows/ I need the full code and where to place it correctly. Thanks ...
0
votes
1answer
653 views

Same ACF Relationship field for multiple Post Options sub-pages?

How can I ensure that the data saved by an Advanced Custom Fields Relationship field, when on an Options page for a Post type, is separate? Detail below: I have an ACF field group, “Features”, ...
0
votes
0answers
7 views

Cant update the product type

I am developing a plugin for one of my clients. However when my plugin is active I am not able to update the product type in woocommerce. I am using below code for the same add_action( 'save_post', ...
0
votes
0answers
8 views

Include Carbon Fields via Composer with Mozart

Coen Jacobs' Mozart is a tool to prevent namespace conflicts in Wordpress themes/plugins which utilize Composer for dependency management. It's similar to PHP Scoper but is described as simpler and ...
1
vote
1answer
1k views

Get term siblings of current child taxonomy

So my url/slug structure looks like this /toolkit-category/downloads/gui-kits. Within /downloads is other child categories/terms. I am trying to fetch the other siblings of gui-kits when on /gui-kits. ...
0
votes
0answers
16 views

How to render complicated shortcodes inside return

I hope you all having a great day. I'm developing a video player plugin with custom shortcodes and stuff but I'm having a problem with the shortcode render. Currently, my shortcode content is rendered ...
0
votes
0answers
285 views

Changing Wordpress media location and upload path to sub-domain not working

I am trying to change the location of all Wordpress media to a subdomain located above the site root ie, above public_html. I updated the wp-config setting to: define('UPLOADS', 'https://cdn.mysite....
0
votes
2answers
667 views

Can't upload images (incorrect “file exceeds upload_max_filesize” error)

This is my first WordPress site. I've installed it on my Linux Ubuntu 16.04 remote server (which is in my house). I've got a LEMP stack installed on this server. When I try to upload images to my ...
0
votes
0answers
16 views

How to achieve a custom post type permalink like this!

How to achieve a custom post type permalink like this! https://softmany.com/facebook-messenger-apk/download/ https://softmany.com/post-name/download/ Thanks
0
votes
2answers
925 views

Need to forward Data from WooCommerce Webhook sent to same site Wordpress REST API custom endpoint

I created a Wordpress REST API custom endpoint to be used as a Webhook URL in WooCommerce in order to convert the received data and then send it to a third party system, but the endpoint apparently is ...
0
votes
0answers
16 views

PHP Code Not Generating Results

I wanted to create a calculator on my WordPress website. But, my code is not generating results on the page after the form Submission. Please help, Thank you MY CODE: <form method="post" &...
0
votes
1answer
667 views

Create a Hierarchical List of Custom Taxonomies AND Posts

I'd like to create a 3-tier hierarchical list of terms within a custom taxonomy, which includes up to 10 posts within each of the bottom-level term(s) only. e.g. Custom Taxonomy - Parent Term 1 -- ...
0
votes
0answers
11 views

Duplicating live theme for a development theme to preview

I normally develop on Shopify. It allows me to duplicate the live theme and then develop in it - then preview that for approvals to add into the live theme. It's been a few years since developing in ...
0
votes
4answers
19k views

WP REST API - Retrieve content from page

I already get posts from categories with: http://domain.com/wp-json/wp/v2/posts?filter[category_name]=category-name but how can i retrieve content from page? - [page_name]=page-name for example but ...
0
votes
1answer
13 views

How can I hide the Orders on the admin side of Woocommerce?

In my WooCommerce shop I don't want to see certain orders in the backend. Only individual orders should be hidden. In the front-end I always do this with the element picker and CSS display: none but ...
0
votes
0answers
13 views

How can I get the second value from a list of three

I have a shortcode in my theme's functions.php which fetches the city, state and country submitted by users. Using the code below, I want to display the STATE only. function zuluzu_display_adLocation($...
0
votes
0answers
10 views

Warning: Undefined variable $post in C:\xampp\htdocs\… after PHP upgrade

I use localhost for testing and debugging sites, before making changes to the live site. Because MySQL failed in XAMPP, I had to install XAMPP from scratch. I'm now using PHP version 8.0.3. ...
0
votes
1answer
12 views

Deprecated: Function get_magic_quotes_gpc() is deprecated in WordPress that causes height change in hoe slider, all Tabs on website

I am looking for effect of this warning on your website Deprecated: Function get_magic_quotes_gpc() is deprecated in WordPress after this warning change in my website home slider height change in ...
0
votes
1answer
19 views

How to set a Post's default visibility to 'Private' in Gutenberg?

I am trying to set a Post's default visibility to 'Private' when a user first creates the post. They should then have the ability to manually select 'published' from the sidebar dropdown once they are ...
0
votes
0answers
12 views

why <?php wp_title(); ?> adds '»' symbol?

on last Wordpress when I wrote <?php wp_title(); ?> appear » symbol before the name of the page.. On my functions.php I wrote add_theme_support( 'title-tag' ); Thanks
4
votes
1answer
2k views

Creating a post with the REST API, curl and oauth returning 401 error

I'm trying to create a WordPress post using the REST API, OAuth, and cURL. However, I'm running into some trouble. I'm able to create a blank post (no title, slug, etc) using the following code: $...
0
votes
2answers
18 views

How to use a custom hook

I try to create and run a custom hook on my Wordpress site. In the header.php file I used do_action('somestuff'); On my home.php and page.php I does the add_action like add_action('somestuff', '...
0
votes
1answer
1k views

how to send two forms with one click (script ninjaforms id)

i need the user to send 2 forms with one button-click, so i'm basically trying to merge two buttons into a third one, in order to pass data along, but don't know what i'm doing wrong here. i've been ...
3
votes
1answer
932 views

Draggable item in custom gutenberg block

I'm developing some custom blocks in the new Gutenberg editor experience, and I'm struggle to understand how to use some build-in components, mostly the Draggable components. What I would like to ...
1
vote
2answers
25 views

Formatting messed up when piping wp commands

Ok, so I have been using wp plugin update --all in the past with a tee command. There has been no problem in the past, but after I ran an update on my system, everytime I run the command through a ...
0
votes
0answers
8 views

Wpbakery pagebuilder: How to create dropdown with custom taxonomy terms?

I have custom post type and custom taxonomy with it. Trying to create wpbakery pagebuilder's element with a dropdown of terms. Here is my vc_map function: vc_map( array( 'name' ...
4
votes
1answer
801 views

Wordpress admin notice in plugin function

i have sample wordpress plugin class. Im hooking woocommerce woocommerce_saved_order_items and i want create a admin notice. Add action from __construct works, but when i want create a notice in hook ...
0
votes
1answer
13 views

Why ever use add_post_meta, and not just update_post_meta?

I stumbled across this nice guide on Smashing Magazine on how to add a custom meta box. In there, I can see this code here, which has me puzzled: /* Save the meta box’s post metadata. */ function ...
0
votes
2answers
21 views

WP custom posts: filter results to custom taxonomy tag that corresponds to user meta field

I need some guidance on making a wordpress posts query responsive to user meta data, and whether it’s possible to do what I want within the query itself, or if further work is needed in the database ...
0
votes
0answers
6 views

user_metadata saved but deleted just before display the page

I made custom user fields on wp-admin/user-edit.php?user_id=42. For some reasons, two fields cannot be updated but I can modify an another custom user field which had already a value. I did a load of ...
4
votes
3answers
8k views

get post meta before it is updated (during SAVE_POST)

Lets say I have custom field on post editor, and I change value from AAA to ZZZ.. : add_action('save_post', function($post){ $value = get_post_meta($post->ID, 'mykey'); } , 1); How ...
0
votes
0answers
8 views

Changing wp_head to a different post/page

The problem in short: I need to be able to replicate the experience of a post on a static page, including title and meta tags. To do this, I need to set the pages post data to the post I'm cloning. ...
0
votes
0answers
23 views

User meta needed in query is serialized - how to unserialize safely?

I'm a complete newbie to php, and I'm trying to use a function suggested by FacetWP to pre-select the post results shown to users. (I'm using this method, rather than pre_get_posts as I want users to ...
0
votes
1answer
773 views

Trying to access second site dashboard on a multisite configuration proceeds to an error

Having this issue that I create a sub-site and when I try to access the dashboard of that sub-site it leads to this error This page isn’t working domain.com redirected you too many times. Try ...
3
votes
2answers
5k 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
0answers
8 views

Sub domain URL slash / missing after domain and before Post & page slug

WordPress page/page is not working after moved the file to subdirectory. URL structure domain.com/subdirectory/post1 is loading as domain.com/subdirectorypost1 - slash (/) is missing before post/page ...
0
votes
1answer
16 views

PHP calling AJAX function that relies on passed PHP function values not working

In reading I am not sure if the issue below could have something to do with needing a custom wordpress ajax handler? All of these functions are inside my functions.php file. I have a couple of PHP ...
0
votes
1answer
172 views

WordPress Update - This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php

I have some WordPress websites server with root access, and at the time of creating the server, everything was fine and WordPress itself and plugins and themes were updating without any issues, but I'...
2
votes
2answers
14k views

WooCommerce - filter by featured products in admin

WooCommerce has a simple way to pick "Featured" products by clicking a little star icon in the "Featured" column in the admin area. I need to be able to filter and show only featured products in the ...
-1
votes
0answers
15 views

How do I change the default file URL in Wordpress? [closed]

I'm wondering since I don't exactly like the default URL, how can I change it? By default, wordpress use /wp-content for file urls, and I want to change that. Is there any way to?
21
votes
5answers
24k views

How to add an admin notice upon post save/update

I have a post type the uses post_save to take the address from the post-meta and retrieve the lat/lng coordinates from the Google API. I need a way of notifying the user if there was an issue with ...
0
votes
0answers
6 views

Autoupdate custom type post taxonomy after date set via metafield

I am launching a site with course listings. Using mostly Crocoblock JetEngine, I created a custom post type with a closing_date metafield to enter when the course applications closes. I also created a ...
0
votes
1answer
23 views

Do posts, pages and / or custom post type objects have unique ID numbers or can there be multiple objects with the same IDs?

What are the canonical rules for the ID numbers of posts, pages and CPTs? Especially as they are created programatically.
-1
votes
0answers
11 views

Adding Custom HTML/CSS/JS code in specific page

I've written a HTML/JS code, it's something like a survey which consists of code like this: <div class="Question"> <h3>1. I have the knowledge of procedures needed for ...
4
votes
4answers
13k views

Custom Post Formats for Custom Post Types

The weight of opinion seems to favour using custom post types instead of custom post formats. I have several custom post types that I want to style in 4 different formats in a way that is not public ...
0
votes
0answers
5 views

Rent or sell product with bundle products

we need Product Bundles with Rent or sell product option when we select Rent than date option will be show according dates price will be calculated and we select products bundles as well.

15 30 50 per page
1
2 3 4 5
2185