Questions tagged [customization]

MEANINGLESS tag. Used as a merge target for other meaningless tags. Do not use it on new questions.

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

WP Custom tables query

I returned to PHP / MySQL development after a long break, and I am working on a project that requires some customization. First, I added a credentials file; then I am referencing that file in my test ...
Sam's user avatar
  • 1
0 votes
1 answer
235 views

Extend WP_List_Table class - Edit wp_usermeta - WPPB.me Boilerplate - Action error

I’m developing a WordPress plugin where the goal/ action is to manipulate data in the wp_usermeta table, by extending the WP_List_Table class, and using it in the WPPB.me boilerplate. I’ve been able ...
Sylvester DeMouser's user avatar
0 votes
1 answer
115 views

How can I properly sanitize the update_option in WordPress?

I am using this part of the code in my WordPress plugin to update the option. update_option('button_loc_shop_page', $_POST['button_loc_shop_page']); I want to sanitize this. How can I properly ...
Rajin Sharwar's user avatar
0 votes
0 answers
81 views

Dynamic Menu Item

I'm a complete WordPress n00b, so your guidance is very much appreciated. Long story short I am running a theme with a child theme attached. I need a function that will retrieve my site's latest post ...
Christopher's user avatar
0 votes
1 answer
27 views

How can I make a search term redirect to a page

I'd like users to enter a unique number such as "756463" and it take them to a specific page. How can this be done please?
Josh Woodhall's user avatar
0 votes
1 answer
2k views

Custom gutenberg block image preview not working

I created a custom block. It works but not able to get the block preview image working. Is there anything else I need to do? I am using create-guten-block to create the block. Can anyone please help? /...
Mangesh Yadav's user avatar
2 votes
0 answers
82 views

Prevent posts from being published if the 'Uncategorized'-category or no category is selected

I do not want a user to be able to publish a post if no category is selected. This exact solution from a similar question is exactly what i want to do: jQuery(document).ready(function ($) { // ...
Joachim's user avatar
  • 21
0 votes
1 answer
508 views

Add multiple HTML attributes to an Elementor button

I want to add multiple HTML attributes to a button which is present across all blog posts on my website. The buttons all have links in them, to which I want to add like 3-4 'rel' attribute values. I ...
Kai's user avatar
  • 3
0 votes
1 answer
317 views

cannot export data from CPT UI (books)

I am working on migrating a website that was built with CPT UI & 'Advanced Custom Fields.' The intent is a library of translated books, and the custom taxonomy from these tools permitted the books ...
yitzhak's user avatar
-2 votes
1 answer
29 views

How to create a job post by email parsing? [closed]

I want to develop a job board in wordpress in which job posts will be created from email parsing automatically. With zapier or Postie plugins we can create only blog posts by email parsing. How to ...
Amrita's user avatar
  • 3
0 votes
1 answer
22 views

show posts under custom post type with same autj

there are several authors on my site. I have a post type called jobs and I have a few articles where the author of the articles and post type jobs are the same, how can I show the articles of each ...
milad alavi's user avatar
0 votes
0 answers
32 views

How to automate the creation of advanced layout article/post

I try to describe my needs to know what would you suggest me. Every morning I have to read 10 Newsapers. Then I have to resume all the Economical topics in many articles (like forex, gas price, gold ...
luke_ar's user avatar
0 votes
0 answers
69 views

Advice how to connect custom database with Wordpress, change data in Wordpress and finaly use this data

Is it possible to create a page in WordPress that will allow logged-in users to create new or change existing content from the custom database? So I think this task could be divided into three parts: ...
Sladjan Ilic's user avatar
0 votes
0 answers
7 views

Background image no more visible in the preview

Since this morning, background image of my website project is no more visible in the build-up page & preview. If I publish my page, the view is OK but as I am using white color for my text, it ...
Esile's user avatar
  • 1
0 votes
1 answer
256 views

How do I add custom CSS animations for specific Gutenberg blocks?

I am not building a theme from scratch and am using a given Wordpress template that allows for full site editing with Gutenberg block editor. I have been able to add custom CSS (using the Additional ...
aristhought's user avatar
0 votes
0 answers
31 views

How do I ensure that post_type and Taxonomy use the same slug?

I had to create a Custom Post Type and taxonomy to add a question and answer section to my site. But I want both of them to use the same persistent link. The codes are like this, so one of the two ...
Murat Dinc's user avatar
0 votes
0 answers
78 views

Automatic recurring payment using YITH subscription and Dokan Stripe

I want to enable automatic renewal of recurring payments for subscription product. I have used YITH wooocommerce subscription plugin for subscriptions and Dokan stripe plugin for payment but for first ...
Rani Rajput's user avatar
1 vote
1 answer
78 views

Custom plugin not appearing

I am learning how to develop a plugin for wordpress. I am running into some issue. The plugin that I am developing is a custom block. I am able to successfully activate the plugin but when I go to my ...
Phillip Mobley's user avatar
0 votes
1 answer
232 views

Serial Number from custom table not appear in woocommerce_email_before_order_table action

I have a custom table with serial numbers in WordPress. I have successfully got the serial number to appear on both Order received page after testing with Stripe: and it also appears on WooCommerce ...
Schmutly's user avatar
0 votes
0 answers
22 views

Hook save_post_cpt not triggered when custom fields are modified

Say I have created a custom post type named 'custom_post'. 'custom_post' contains three custom fields which are added using ACF: 'custom_field_a', 'custom_field_b' and 'custom_field_c', where '...
waffeltje's user avatar
0 votes
0 answers
110 views

wp_enqueue_script JS code runs too late (after user begins interacting)

The issue is that we need to replace some HTML based on the user's user agent string but by the time the JS code is loaded and runs, the user is already interacting with the page. Is there some way to ...
Slbox's user avatar
  • 109
0 votes
1 answer
106 views

Created Custom Block - When I come back to edit post/page and change my block content - Update button stays disabled

First time diving in to custom blocks - so I've managed to create a block, pretty simple just using RichText and attributes. Everything works fine when I initially add the block, I can change the ...
ScOrPiOn37's user avatar
0 votes
2 answers
39 views

Show Site Name on WP login screen

I'm trying to create a generic, re-usable function that shows the site name on the login screen. It works with just static text, but how do I pull in the site name dynamically? Here's what I've tried: ...
Channing Krendler's user avatar
0 votes
1 answer
453 views

Hook before user is created and make some custom validation

I try to hook in user creation process in admin dashboard /wp/wp-admin/user-new.php to make some custom validation on data with the following hook, but the hook is not executed on form submit. What ...
fefe's user avatar
  • 844
0 votes
1 answer
64 views

How to customize maintenance mode notification in wordpress?

I am installing and activating the SeeProd plugin. but it did not work. I need to another simple method to customize maintenance mode notification.
davidjonh023's user avatar
0 votes
1 answer
221 views

WP Search Form Query: Add Author's posts into search query

As the title suggests, I'm looking for WordPress advice relative to leveraging the standard searchform.php functionality to additionally query the author field when performing searches. I've tried ...
TheNotSoGreatProgrammer's user avatar
0 votes
1 answer
38 views

str_replace inside specific css files [closed]

Is it possible to perform str_replace inside an enqueue stylesheet? i can do str_replace on inline style with this function function replace_text($text) { $text = str_replace('background-image', '...
Uxair's user avatar
  • 1
1 vote
0 answers
182 views

Create membership number for existing/new users

I have a membership site with 4000+ users currently on it. I am needing to give both new/existing users an automatic ID number. its very similar to this: Create Unique ID for user However, this only ...
OverdueOrange's user avatar
1 vote
1 answer
50 views

list/consult Taxonomy only for the respective author/creator in dashbboard

I'm trying to filter so that only the creators of the respective categories can edit them. I created a cat_author meta field and associated it to the taxonomy. In this way, every taxonomy has an ...
naber brene's user avatar
0 votes
1 answer
168 views

How do I disable the built-in editor and automatically configure the properties of new pages?

I use a Builder plugin on the site. Members are editors and can create their own page. I want to disable Gutenberg so that they can only edit pages with Buldir. I would also disable the properties of ...
Olvas0's user avatar
  • 3
0 votes
1 answer
956 views

Setting Parent Page to Post

Does anyone know how to achieve different parent pages for posts? I've managed to code a Custom Post Type that sits under a specific parent page, but I want the option to change this from post to post....
crgn's user avatar
  • 3
1 vote
0 answers
206 views

Updates for a private theme

I wrote a own theme and I dont wanna deploy it by myself. The customer should do that himself. I found this solution for plugins. But it doesn't work for themes. Is there an alternative to add_filter(...
melaniemueller.design's user avatar
0 votes
0 answers
75 views

Array data not saving to specified sections. How to make seting independantly?

I think I am writing the array part wrong. When saving on this array if you set all five settings, the setting from the 5th option is saved on all the settings. But if you then set the first four ...
Angel Hess's user avatar
0 votes
0 answers
29 views

Changing update message from Newspaper child theme

Maybe my question is very particular and limited to Newspaper theme users. I’m using child theme with an update server. It works fine. I’m wondering if I can change this update message and actions ...
Emmanuel Borges's user avatar
0 votes
1 answer
17 views

Create a custom posts page

I've created a template that shows all my blog posts. But the issue was that this page slug (tips-and-tricks) wasn't added to the URL of the single post. Solution: I've selected this page as my blog ...
Dennis's user avatar
  • 135
0 votes
1 answer
372 views

Custom default settings for WP native Gallery Block

I've started with MarkJ's answer - JavaScript included into the block editor. I wanted to control more attributes for gallery than linkTo — the number of columns, cropping, and image size. wp.domReady(...
Rafiozoo's user avatar
0 votes
0 answers
21 views

How to add filters to my site?

I've just started to use Wordpress for a few days to build a website. How can I add customizable filters to my site? I'm using a free version, if this requires a payment? Which ones should I choose (I ...
user15515518's user avatar
15 votes
1 answer
2k views

Prevent WordPress from automatically installing a new theme each year

Is there a setting for new disabling new yearly themes? Each year my WordPress installation automatically installs a new theme which I then delete. For example, this year the theme Twenty Twenty-Two ...
Stephen Ostermiller's user avatar
0 votes
1 answer
27 views

Question about link two types of data in wordpress

I have a problem and I'd a like a suggestion to solve it. I have two data(Architects and Projects) where both need to link each other, architects must have their own page as well as an archive page. ...
Mauricio Barbosa's user avatar
0 votes
0 answers
18 views

Make the home page template my archive/category page template without code duplication

Exploring WordPress and bumped into this issue: In my theme root page-templates/home.php which is a common page template used in multiple pages. Now I want to include the same template (with some ...
Bipul Roy's user avatar
  • 101
0 votes
0 answers
234 views

WP-Bakery - Add custom colors to buttons with template colors

I'd like to add custom colors to the wp-bakery-front editor. Adding all the colors works but I just want to add the color of the current template. My function.php in the theme has the folowing ...
Ritzga's user avatar
  • 1
0 votes
0 answers
145 views

Don't update modify time post on Quick Edit

How can I disable updating modify post time when something is changed in Quick Edit mode? I found this snippet but I don't know how to implement that to reflect in Quick Edit mode? function ...
damirk's user avatar
  • 1
0 votes
1 answer
155 views

How to show parent taxonomy using get_the_terms?

I have registered one custom taxonomy. I am using this code to show this taxonomy on single.php. But it shows parent and child terms as well. function showorganisation() { $terms = get_the_terms($...
Prabhat Jani's user avatar
0 votes
0 answers
10 views

Turn off display for custom sidebar post widget when on the post it's displaying

Hope my title makes sense, I've attached a picture for what I mean. I'm trying to use a simple bit of CSS. body.page-id-60748, .widget_its-single-post { display: none !important; }
Bennetts Design's user avatar
1 vote
1 answer
68 views

Custom Post Archive Page not working

add_action('init', function() { register_post_type('vendorpost', [ 'label' => __('Vendor Post', 'txtdomain'), 'public' => true, 'menu_position' => 5, '...
Lokesh8285's user avatar
1 vote
0 answers
500 views

Understrap child theme JS not working in custom-javascript.js file

I'm developing a Wordpress custom theme using the child-theme of Understrap. I'm adding my custom jQuery to child-theme > src > js > custom-javascript.js, and the file is already commented ...
mackayem's user avatar
1 vote
0 answers
31 views

How to encode author ID in the author permalink

My permalink urls for users look like /author/1 (original author ID) Is it possible to replace author ID with an encoded number In my dream author permalink should look like /author/56c96e766f8334 (a ...
ooneland's user avatar
0 votes
1 answer
26 views

Custom menu not showing even though it shows as being registered?

I'm running into a really weird problem. Some quick background: I cloned this workflow from one I've been using before but just updated everything including node packages and the gulp functions and ...
Jan's user avatar
  • 3
0 votes
0 answers
96 views

Open login logo URL in new tab

Using add_filter('login_headerurl', fn() => FRONTEND); i was able to change the login logo URL. But i couldn't find a way to make it open in a new tab. Or in other words, how can i add target=&...
TheDoctor's user avatar
  • 103
0 votes
1 answer
53 views

Get custom text if in Category

I have added some custom text at the end of all my articles. Now I want to remove that text if is in a certain category. For that, I have the following code. <?php if(in_category('sample-category'))...
Vali Dragomir's user avatar