A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [customization]

Modifications to theme and plugin files to create new functionality.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

How to auto empty comment trash after X days

I know how to programmatically delete comments that are X days old but they then go to the trash. How do I empty the comment trash every X days? function ...
0
votes
0answers
14 views

how can custom permalink structure use for specify custom post type

generated url some thing like this http://domain/test/testing-web002/ here test = custom_taxonomy(we can say custom category slug) and testing-web002 = custom post slug its showing 404 error at ...
0
votes
0answers
8 views

Is there a way to add an unlimited amount of image controllers?

Is there a way to add an unlimited amount of image controllers in the customize section ? For example, If you have one image controller setting with cropper, but you want to add several more ...
0
votes
1answer
79 views

wp delete duplicate entries of custom post types every 15 minutes

looking for some assistance. I have searched the usual sites but not come across this specific question and was wondering if anybody could help. I have a scrape system that collects data and saves it ...
0
votes
1answer
23 views

Custom post type's posts are not showing anywere but in xml sitemap

I don't use any cache plugin. Custom post type's posts are only showing in xml sitemap but not showing in other places on the site, until I "open each new post url manually" or "use a third-party ...
0
votes
1answer
46 views

wp.blocks.registerBlockType not showing what I want on the frontend

According to my understanding, whatever is displayed in the save: function is what is shown on the page in the front end? So I am trying to query the database from my block to get information I am ...
0
votes
0answers
13 views

Custom wp_list_tables redirect on specfic page

I have created a custom plugin and added the wp_list_tables and added some bulk actions, What I want to achieve when user select fields it should go on another page where, I can get all selected id's. ...
0
votes
1answer
169 views

Custom shortcode being shown in WPBakery backend rather than the block

I have a nested element called Hero Slider. Hero slider is the container and it can only contain a Slider item. However, my shortcode is being shown in the WPBakery backend maybe suggesting a syntax ...
0
votes
1answer
19 views

Does hooking into a plugin action / filter override the plugin's function for that hook?

I have a question about how actions and filters interact with functions: I am currently using an event ticketing plugin for wordpress, there are built in validation rules that is already in the ...
0
votes
0answers
28 views

Implementing multiple text inputs in customizer

I'm trying to implement multiple text fields as inputs for a custom section in the theme customizer for a theme I'm working on. Now I'm getting the ui on customizer where all social media textfields ...
0
votes
0answers
13 views

Wordpress convert html section to widget

I have converting html template to wordpress. In home page i need to create customize section. while converting i could't convert image with specific classes. HTML Code: <section class="homePanel ...
0
votes
0answers
12 views

Why aren't my custom js scripts loading from child theme?

I'm trying to override some custom js files in my child theme, and I have managed to get almost all scripts working, except for one script - the 'child-listing' script. All scripts load from child ...
0
votes
1answer
28 views

Multiple loops on same category with different design

I am having a problem regarding the showing the multiple loops on the category posts i want a posts from a category=social where 3 design is located the structure is as follows Note: I want a ...
0
votes
0answers
18 views

BuddyPress Customizations

I am new to Wordpress and Buddypress. I have a couple of items I am struggling with and would love a little direction. In Buddypress, when you visit a group that is private, you receive a default ...
0
votes
0answers
20 views

Help with group pages and redirections

I am new at asking for assistance in these forums. So, bear with me please. I am working on a WordPress site that involves BuddyPress groups as well as the membership system that PMPro provides. I am ...
1
vote
0answers
75 views

How to delete all posts from a custom post type?

I want to delete all posts from a custom post type "TV-Serie". The number of all posts in this post type are 150,000. Moreover, when I try to delete them all manually while selecting more than 500 ...
0
votes
0answers
24 views

WP Query for all events prior to current date

I'm trying to display past and future events using a wordpress query. I'm able to query future events and even events that are on the same date as the current date. But, when i use less than or ...
0
votes
0answers
15 views

Search.php customization (add button ) not working

I am trying to add "Special order" button in search.php before footer section. purpose of this button is if customer not found his desired product he can click on that button and will go to special ...
0
votes
1answer
486 views

Gutenberg Block - Post Featured Image Filter Hook

I'm wanting to add some functionality to the featured image block in the Gutenberg editor. I've got pretty close: The problem is, I'm unable to select an image, and posts that already had a featured ...
0
votes
0answers
16 views

WordPress Wallet/Credit without woocommerce

I am trying to create a credit/wallet like system where user can add their credits from the front-end and when they clicked (buy) a CPT, it would subtract from their total wallet balance. I've tried ...
0
votes
0answers
33 views

Child Theme with RTL Support - Does not load parent RTL file

I have been working on a Child Theme. And I have added this code to my functions.php <?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEUE PARENT ACTION // AUTO ...
0
votes
0answers
14 views

Theme customisation - how to store common variables externally

I have been developing a custom extension for my theme over the last few weeks. This is my first time "developing" with Wordpress. All works fine and I am happy with the resulting functionality, ...
0
votes
0answers
49 views

How to extend WP_query to a specific table?

I created a new table (named extrapage) in the wordpress database (named wpsite_db). I have added to this table some pages not published directly with wordpress and I want these pages to be considered ...
0
votes
0answers
14 views

Custom shortcode sorted by meta date shows only current year and displays other language in date

I have this snippet in my functions.php. I thought it worked, but I noticed that it shows events only from this year (I have more events that are next year) and also, I can't get the date format to ...
0
votes
0answers
63 views

Custom Drop Down in TinyMce in Elementor

I'm using elementor and added text in drop down,"Span", but its not working i want to know how to add functionality such that it will also work like "Heading 1,2,3,4.." are working. I added "Span" ...
0
votes
0answers
65 views

WooCommerce: Change price of variations with specific stock quantity

I'm trying to make my variable products more expensive when they fall under a certain quantity. Something like a reverse-discount. I found out how to change the price and a way to get an array of the ...
0
votes
0answers
14 views

Multi-page site via Wordpress custom theme

Is it possible to display multi-page content via WP custom themes? By WP custom themes i mean a wordpress theme manually created by splitting my Html into .php files and then uploading them directly ...
0
votes
0answers
24 views

How to hide subcategory posts in main category [duplicate]

I want to show in my Taxonomy only posts which are in Main Category and Subcategories links - but i need to hide posts which are in Subcategories in main category. Do you know how can i do it? This ...
0
votes
1answer
38 views

Make Widget appear on Dashboard

I recently created a widget in my functions.php with following code : register_sidebar( array( 'name' => __( 'Informations importantes', 'twentynineteen' ), 'id' ...
0
votes
0answers
15 views

Create a custom role to can access only a custom api endpoint to fetch data

I have a small external app which is communicating with a wordpress custom REST API endpoint, in the meaning is requesting some data aggregation from web but will never push back data to wordpress DB. ...
0
votes
0answers
17 views

Change the navigation items on mobile menu on custom theme

Im working on a website previously created by an agency, they used their own theme, but I am looking to move the mobile view menu items, so that Find Help Now, and the language settings are at the top ...
0
votes
0answers
27 views

Adding an extra checkbox to product attributes

I have a few product attributes. I would like to add a checkbox there, with name "Display on product list". If this checkbox is checked, then this product attribute should display on front-end, on ...
0
votes
1answer
27 views

How do I remove a customiser option from a parent theme in a child theme?

Let's say there is a theme that you like but you want to make some changes. You make a child-theme. At least you do if you follow good advice. So now you have a child theme. You are happy with it and ...
0
votes
0answers
30 views

How to create a custom search form to filter data organized in tabs?

Considering that I have an Excel table that represents my "DB", I need to implement a custom search form that: retrieves data from the table, using some filters, and shows short results; opens a tab ...
1
vote
2answers
176 views

Turn off redirect to canonical domain (or host website on any hostname)

I want to have various development (say dev.example.com) and staging environments of a WordPress multisite (example.com). For this it would be great if WordPress wouldn't redirect to what it considers ...
0
votes
1answer
414 views

How to disable automated E-Mail on PHP error/exception?

Since WordPress 5.2 there is an automated E-Mail on PHP exceptions. In some smaller projects I just upload the files for new extensions while developing - whenever an error occurs then, the site admin ...
0
votes
0answers
14 views

i tried to change custom permalink on subdirectory blog, but blog homepage automatically display root homepage content

i tried to change custom permalink on subdirectory blog, but blog homepage automatically display root homepage content, please help if anybody know the issues.. For example I have domain - https://...
0
votes
0answers
36 views

Cannot replace header & footer using “the_content”

It replace everything except header & footer. I've tried different priority for this function but it doesn't seem to work. I think the_content is only for content and not header/footer, but after ...
0
votes
1answer
139 views

Remove POST_TYPE from custom post type permalink

I have a post type named services with the following permalink DOMAIN/services/investing/ (Single Page Permalink). I want the permalink to be changed like DOMAIN/investing/. I don't want the ...
0
votes
0answers
11 views

Replace the Dashboard help link with an external link?

In the right top corner of the dashboard there is a Help button, this opens a small frame on the current page showing Wordpress help. Is it possible to disable this, and instead use this icon to link ...
0
votes
0answers
22 views

How should I design subcategory login site?

I am trying to design a specific type of site and would like someone to point me in the right direction. main home page with list of public subsites (categories i think). Also a form to become a ...
0
votes
0answers
22 views

How to make the videos in loop and auto play

I am trying to make all front-page videos in loop and autoplay I am using divi theme, I know it will be done by adding loop and autoplay tags in the video tag but how to do it where is that module ...
0
votes
0answers
16 views

How do I change the button text color on my header?

So I'm looking at my header in Wordpress and I noticed the header button text color is stuck on black. I don't know any way to change this since I'm very new to wordpress; and any other answers I ...
0
votes
0answers
17 views

Change social navigation menu default icons with customized icons (twentyseventeen theme)

I'm taking the first steps as a self-taught in the wordpress world. My problem is the following: modify the icons that the "Twentyseventeen" theme assigns by default in the social media menu. I ...
0
votes
1answer
49 views

How to clean up the theme for production?

Is there some automated way to generate a dist/production version of the theme without all of the hidden .git, IDE directories and the config files, node_modules? WARNING: .babelrc .git .gitignore ....
-1
votes
1answer
27 views

How to create a shortcode with HTML code in it and custom parameters/

I want to create a shortcode for putting newsletter opt-in boxes in my posts and pages. But depending on the page or post, I want to have different headline and description for the opt-in box. I ...
0
votes
1answer
41 views

Insert menu with a custom walker into page / post body using shortcode?

I'm trying to add a menu using a custom walker class into a page or post body and settled on using a shortcode. I don't have to use a shortcode, but I do have to embed the menu into the central ...
0
votes
0answers
24 views

Suggestion to buid a site with wordpress

What would you use to accomplish this site structure? members can upload their photos. first page will show members photo (only one photo). only paid members can upload and have photos visible/shown. ...
0
votes
0answers
23 views

delete images phisicaly as well

When I delete a media image in the media library, the file in the uploads repository is not removed, only in database so when I upload a similar I got : my-image1.png my-image1-1.png my-image1-2.png ....
1
vote
1answer
46 views

How do you modify the WordPress directory structure?

I would like to use the following directory structure for WordPress. ├── composer.json ├── config │ ├── application.php │ └── environments │ ├── development.php │ ├── staging.php │ ...