Questions tagged [customization]

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

1,448 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
262 views

custom payment gateway in woocommerce failed to connect to remote api server

its my first time to create wordpress plugin, my task is to create a payment gateway i study this sample and also did some code on php using cURL here is the code. and it works. now on wordpress when ...
1
vote
0answers
19 views

Custom post type adds time/date and author to the post?

I got a custom post type, which for some reason adds a line to the post itself (checked the database). The line looks like this: 1 sep. 2019 kl. 21:05 skrev Sitename : The weird part is my site is ...
1
vote
0answers
27 views

Show titles, date of all posts on single category page

So I am designing a page where I'm showing all the categories like this: I created a custom page template for this and added this code: <div class="timeline-post-categories"> ...
1
vote
0answers
24 views

Control Content On Non-Blog Pages

I'm new to WordPress, trying to learn it's capabilities. My Goal My goal is to make a normal website but have it's content (text and images) be adjustable by the user / client, managed content. An ...
1
vote
0answers
25 views

Display encrypted content on my website

Good day I am new here and to wordpress as well, please can someone tell me how i can automatically hide email addresses displayed on the front page(dynamic Content), see example https://quickleads....
1
vote
0answers
22 views

need help with a user-specific custom page template

I created a custom page template that will show sales from a hotel. I have 3 users and I want each user to only see their hotel sales on a user profile specific page. The template calls data using the ...
1
vote
0answers
17 views

Woocommerce custom search

I want to build a search form on the homepage where people can search by Product Name Product Category Price range I have found a few results, but a lot of them are filters which display products. ...
1
vote
0answers
21 views

How to categorize posts under Category 1 and Category 2 which are separate lists of categories, and display them as separate lists in widgets

Background My site is about DIY and 'making' around the house (let's say). Current version 5.1.1 I use posts for the content on my site which isn't strictly in "blog" (chronological) format ...
1
vote
2answers
115 views

Show post page only if the user has bought a specific product

I'm having troubles with Woocommerce. I need to sell videos. I've created virtual products with a link to a different post for each (no download as I prefer to embed the video on my website and to use ...
1
vote
0answers
23 views

How can I use a Tiny MCE editor in my custom Gutenberg block?

I am building a custom block where I would like to use the Tiny MCE editor for content entry rather than the RichText component that ships with Gutenberg. I am making this choice because I can't see ...
1
vote
0answers
131 views

Query to get siblings and parent page

I would like to create a custom query ID (to use in Elementor) to get siblings pages of the current page + the parent page of the current page. For now I get only siblings pages (without the parent ...
1
vote
0answers
19 views

Always logged in even if remember me is unchecked?

I want to extend the login session so that I never ever get logged out. Even if Remember me is left unchecked. This is the code I have at the moment, but it doesn't seem to work with Remember me ...
1
vote
0answers
48 views

Add New User, extra fields which are required?

I use these two functions to be able to set the first and last name when I go to Add New User: // Add First and Last name to Add New User function add_new_user_name_fields($user) { ?> <...
1
vote
1answer
35 views

Add custom profile field only for site admins?

I am trying to add a custom field called Company to all site admins on my network. And disable this field for every role which hasn't got the capability to create_users. This is what I have come up ...
1
vote
0answers
27 views

Title attributes on Permalinks for posts and products

I need to add title attributes to my wordpress links for new posts, pages and products on a website. This is for the actual post/page/product and not within content. For example if I create a post/...
1
vote
0answers
29 views

How to add an extra variable to login and authenticate it?

I want to add an extra variable to my custom login and to authenticate it to then add it to an SQL database. My custom login: <?php require('wp-load.php'); require('site_config.php'); function ...
1
vote
0answers
162 views

user_profile_update_errors hook not executing

I'm trying to use the user_profile_update_errors hook, however it doesn't appear to be executing. I'm calling it like this: add_action('user_profile_update_errors', 'blm_register_result', 10, 3); ...
1
vote
0answers
90 views

Best practices to assert current_user_can() with guests

In WordPress, a guest can do a lot of things, such as reading posts. However, this always returns false for guests: add_action('wp', function() { global $post; /** @var WP_Post_Type $pto */ ...
1
vote
0answers
15 views

How to display all subpages and short by year

How can I display all child-pages and short by year in Wordpress For example: all subpages in 2016, 2017, 2018: • 2018: ----- Subpage A ----- Subpage B ----- Subpage C • 2017: ----- ...
1
vote
1answer
523 views

Send an email to specific adress when button is clicked?

I have created a custom page template with a search function, this search function shows posts, and I want to create a button on each post that when it is clicked will send an email to the author of ...
1
vote
0answers
183 views

Can't create term for product attribute

Please help. I need to create product attribute term after I create a product attribute taxonomy. wc_create_attribute([ 'name' => 'Size', 'slug' => 'size' ]); // This will only work If I ...
1
vote
1answer
780 views

Color swatches on category page?

I'm trying to add color swatches on category page. I have this code in functions.php : add_action( 'woocommerce_after_shop_loop_item', 'sm_display_product_color_options', 9 ); function ...
1
vote
1answer
314 views

WooCommerce sort products by the actual product width(not the shipping width)

I have regular/simple products and products with variance in the database. Regular products and variations have a product width(_pm_width_inches) associated with them . I am trying to sort based the ...
1
vote
0answers
22 views

Show posts by a custom post author

I have a listing site and various authors create custom posts (job_listing) On the listing post itself, I would like to show the links to the last 5 NORMAL blog posts by that author Is this anywhere ...
1
vote
0answers
24 views

Post category with counts been display like a menu

It is possible to display a post category list and counts like a vertical menu with some images icon in each post category.
1
vote
0answers
3k views

Get product variation attribute titles - WooCommerce

Hi there so when I am on a product page and I loop through the variations, I want to list their attributes WITH their titles. I have my code at a point which lists the variations attribute values but ...
1
vote
0answers
25 views

Steps for custom data retrieval

I'm trying to create a data retrieval field within a page. This would be a single input text box, which would query a non-WordPress table and return the result. I have done custom retrieval in the ...
1
vote
0answers
47 views

Send reply with pre-prepared answers

Do you know the way to ask users' comments with pre-prepared answers? What i want is very simple and more like a comments section that only can select and remove emojis without typing and have 4 ...
1
vote
1answer
18 views

changing font size and font of a custom message added after comment

hi i have added a code in function file of the theme to show a default custom message after the user leaves a comment of the blogposts . it reads like this . add_filter('after_comment_text', '...
1
vote
1answer
66 views

Edit sticky header html - How to locate corresponding php file

I need to make my sticky header work a bit more smoothly. Right now, when you scroll down, the sticky header immediately loads which makes the website jump. It´s bumpy and leads to bad user ...
1
vote
0answers
253 views

Customizer: active_callback and sanitize_callback incompatibility?

Below are a few Customizer controls I have for my site logo - Display Logo, Logo File and Logo Size. As you can see, I'm using an active_callback so that when the display_logo checkbox is unchecked, ...
1
vote
0answers
20 views

Include custom JS without child theme

Is there a way to include custom JavaScript on a website, without using a child theme? I am currently working on a customers website. Unfortunately he somehow managed to make it kind of impossible to ...
1
vote
0answers
410 views

How to change Attribute Type

I have created an attribute product-pv like below. Using the following code, function proccess_add_attribute($attribute){ global $wpdb; //check_admin_referer( 'woocommerce-add-new_attribute' ); if (...
1
vote
0answers
38 views

Disabling Customizer Selective Refresh shortcut icons for selected controls

Sometimes, on using the selective refresh feature, the shortcut looks little meaningless when an element is sort of removed from the view. For example, if I remove the custom logo and replace it ...
1
vote
0answers
32 views

JavaScript stops working on selectively refreshed sections one inside the other

I have two sections, a header and a logo in my theme. The logo is inside the header. A control in the customizer is responsible to handle the alignment of the header through selective refreshing. I ...
1
vote
0answers
42 views

Remove add news page and posts from menu

I want remove add news page and posts from left menu I try to use remove_submenu_page('edit.php', 'post-new.php'); but it only remove add news from posts, I need to remove add news from pages too.
1
vote
0answers
39 views

Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?

I recently purchased a 3rd party WP plugin (and started a site) with a view to starting a business. The plugin was first released only a few months ago.This particular plugin provides essential ...
1
vote
0answers
33 views

Custom Status of Custom Post type need to EXCLUDE from Taxonomy pages

I have 400 custom post type posts saved as DRAFT which are no longer in use but it can be in future, So for SEO purpose i want now to have all those posts accessible with direct URL but not showing on ...
1
vote
0answers
16 views

Saving and Restoring a Canvas on A Individual User Basis

I’m a little lost and not sure where to begin. I’m not necessarily looking for a complete solution, just a guide to the right direction. I want to have: ⁃ a page with the drawing application ...
1
vote
1answer
234 views

Create a custom php page and load it at a specific slug

I have this painful problem with a client. They need to load a feed from a remote endpoint into a page that fits their WordPress template design.. They also want to display the page at a particular ...
1
vote
0answers
28 views

Structure of data : CPT + terms

good morning, It’s not technical question about query or something else but about sructure of data. My current organisation doesn’t satisfy me, I’would need some advices please. The site speaks ...
1
vote
1answer
217 views

Redirect specific user role to specific site after login?

I have a function which kind of works. It will not work the first time when cookies are cleared. But the next time I will get redirected after login. Why is that? function role_user_redirect_login($...
1
vote
0answers
796 views

Send multiple attachments with wp_mail in PHP

I'm trying to send multiple attachments with wp_mail() , after some issues of attachments names (it displayed something like phprTxfd.pdf instead of file_name.pdf), i succeeded to display the name of ...
1
vote
0answers
49 views

Prepopulating a specific page template with HTML/CSS

So, I'm trying to prepopulate a specific page with HTML/CSS every time the page template is used. I've found this thread that was very helpful with how to do it, and this one was very helpful on ...
1
vote
0answers
264 views

When sale price is 0.00 show only regular price

I run my woocomerce product updates via excel sheet uploads with over 10,000 products. However, with the sale price/promo price column, I have prices of 0.00, 0 and some blank. I want a situation ...
1
vote
0answers
75 views

Wordpress admin pointers tour bug?

I found a fantastic function which lets me create a tour for the site admins when visiting the dashboard for the first time. I managed to make it work really well, except when I tried to make two ...
1
vote
1answer
67 views

The function can not create a table on MariaDB server

The function works on MySQL server well but it can not create a table on the MariaDB server. What could be the problem? public function create_table() { $current_version = get_option('...
1
vote
0answers
251 views

redirect post id to post full url

I use this permalink structure /%post_id%/%postname%/ in WordPress the problem is that posts are accessible via post_id for example: example.com/1415/how-to-make-a-cookie is accessible with this ...
1
vote
0answers
42 views

How to handle paged param in post and custom-post-type?

hope someone can help me on my customization. PREMISES i'm very experienced dev, but very beginner on wp. I readed lot of answer on SO but not finding nothing similar to solve my issue. What i need ...
1
vote
0answers
25 views

Allow a Widget to be used one time only?

I am trying to only allow the use of all my widgets one time per widget. But searching a lot for this did not help me. I found something called $settings['_multiwidget'] = 0; but I don't know what it ...

1 2
3
4 5
29