Questions tagged [customization]

Modifications to theme and plugin files to create new functionality.

Filter by
Sorted by
Tagged with
0
votes
1answer
751 views

Getting a jQuery library to work in WordPress & Avada

I am creating a custom page template that would include this jQuery multi-selector on it, but I cannot seem to make it work no matter what I do. Both CSS and JS files seem to get added to the theme ...
0
votes
0answers
15 views

I need to generate dynamic url in the WordPress site

Any one can help me: I need to generate dynamic url in the WordPress site. for example: Homepage have 3 dropdown country, state and city. When I select country dropdown then url will be ...
0
votes
0answers
57 views

Deleting users do not deletes coments

Hello I have bee trying to figure this one out without any luck. I am deleting users from my site, and selecting either delete comments or attribute comments to: options do nothing. The user does not ...
0
votes
0answers
9 views

Wordpress Performance and bulk edits

Should Wordpress slow down and throw 502 and 504 errors , when 5-6 people simultaneously are making bulk edits on the site on different/separate accounts? It's a Woocommerce site with 600 products on ...
0
votes
1answer
13 views

Create survey that redirects to sidebar menu customized to answers

EXPLAINED: I want to create a survey for my users about who they are and what they most want to get out of my services. After the survey is completed I would like the users to be redirected to a page ...
0
votes
0answers
24 views

Add file extension to function wp_get_attachment_image_srcset()

The function wp_get_attachment_image_srcset() delivers the srcset information of an image. Is it possible to write a seperat function to add an additional extension (.webp)? Output of the function ...
0
votes
0answers
8 views

Elementor Full width template code

I'm going to create my custom template page using elementor full width template code is there a way I can get the code? Thanks
0
votes
0answers
9 views

Media selection and multiple rows with jquery?

I need to make a WP plugin that would have: A WP-Admin page for doing stuff. In this page you need to have a row with a button that open the media gallery popup, where you can choose an image. In the ...
-1
votes
0answers
11 views

Function create_function

Deprecated:Function create_function() is deprecated in /nas/content/live/syn1/wp-content/plugins/foobar/includes/WP_PluginBase.php on line 822
0
votes
0answers
11 views

Executing a function upon webhook calling wordpress

I assume it is best to have webhooks that run from like say thrivecart, or other processors, execute code from a plugin, so that updates do not overwrite custom coding... I've never created a plugin ...
0
votes
0answers
6 views

Elegant Themes Extra Carousel Customization

I have the extra theme and using a carousel plugin/module on the homepage. Unfortunately it's showing 4 items and then it rotates for the number of posts that I want. But I would like to show only 3 ...
0
votes
1answer
488 views

Delete Term via edit-tags.php

I might get rep'ed down on this - but is there suppose to be a "Delete" link on the edit-tags.php page? Note: not the WP-List-Table, but the actual page where you specifically view the terms ...
1
vote
1answer
761 views

Search results ordered by custom post types are not grouped

For a WordPress website I have a couple of custom post types, named cities and books, and also the regular blog posts. I have customized the search results (only search in the post title) page so that ...
0
votes
1answer
766 views

How to send email with wp_mail() with from email taken from contact form instead of the host?

I have set up SMTL like this, add_action( "phpmailer_init", "send_smtp_email" ); function send_smtp_email( $phpmailer ) { ini_set("sendmail_from","xyz@gmail.com"); ini_set("sendmail_path","xyz@gmail....
0
votes
1answer
203 views

Integrating Yii2 and Wordpress

I am trying to integrate Wordpress and Yii2. I would like to reuse the Wordpress theme view, and use the actions of the Yii2 controller. If there is anyone who has integrated in the past Yii2 with ...
0
votes
0answers
13 views

Display products by attribute on category pages

I'm looking around a solution for displaying products by attributes (pa_size and pa_color) on the product category pages. I have too much color and size options for my products. So, i want to create ...
0
votes
0answers
6 views

Interlink Pluggin Special charectors Issue

I am using interlinking pluggin but when I put a key word like "Invisalign®" it is not working while reading docs couldnt found the special charectors handling there.Any support would be appreciable
0
votes
1answer
20 views

How to get different Related Posts

For some reason most of our blog pages show the same or very similar related posts Im using this code: $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach($...
0
votes
0answers
10 views

REST API allow POST for particular Cutom Post Type

I created custom end points for my custom post types to get only data that I want like title, content and featured image and few custom fields. I am getting REST json data fine. I am building an app ...
-1
votes
0answers
8 views

to display header version in every pages using meta box [closed]

![Plese Share Your answer to create custom meta form for header for all pages ]1
0
votes
1answer
26 views

how to add custom html and css to wordpress

for eg if i want to add this code from this site https://codepen.io/tamak/pen/ApLcq html Tutorial Animated rollOut bounce flash pulse rubberBand swing shake tada wobble bounceIn ...
0
votes
1answer
790 views

Woocommerce: Any way to list all products *without* a specific attribute?

We're going back through an existing site and adding attributes to the products, but we need a way to verify that every product has gotten them. Is there any method or function call that will give ...
0
votes
1answer
25 views

What requirements for ACF custom fields key and name properties?

I have the ACF custom fields plugin and I am using acf_add_local_field_group to register custom fields via PHP. When creating a field via PHP I must provide 3 properties: key: ACF unique identifier ...
1
vote
1answer
863 views

Get rid of title from static front page

I don't have an image logo header yet, rather, I'm just using one of my 'Pages' as my static front page. It's title is "Welcome" So now, 'Welcome" and links to it are appearing in three places: at ...
1
vote
2answers
13k views

Reinstall WordPress Without Losing Data

So I recently had issues with my WordPress database. goDaddy created an updated MySQL and then files got thrown all over, things missing, etc. It got to the point where they pretty much told me ...
0
votes
1answer
37 views

Display the search results like the original pages

I'm creating my site (locally) and I'm using the starter theme underscores.me I created few pages using bold, italic, and other text styles, but I noticed that in the Search Results page, the content ...
0
votes
0answers
9 views

Parent category as WOOCommerce Categories widget title

I'm really not a developer, but this is something I expect not to be too hard to achieve :-) I really don't know where to start, so that's point 1. I read all of the topics about dynamically changing ...
2
votes
1answer
678 views

Shortcode displays only default attribute values

For some reasons every shortcode, that I try to add to functions.php, displays only default attribute value and ignores what I specify in a post. E.g.: function my_shortcode( $atts ) { extract( ...
2
votes
2answers
1k views

Display custom post types by date field

I have a custom post type that is simply titles with a date field. I want to display these posts in a list in order of this date field (not date posted). So simply: -- Sample date Event title 1 ...
0
votes
1answer
12 views

Page with some post value id showing page not found

I have customized the template and sending some value using POST method to each custom page. All custom page is working good except the last custom page where I need to insert the data with mail send ...
0
votes
0answers
12 views

Referring to posts in multiple categories

I have posts assigned to multiple categories, as in this example: Post 1 > Cat A, Cat B Post 2 > Cat A, Cat B, Cat C Post 3 > Cat B, Cat C The posts are accessed via category pages, and on the posts ...
0
votes
3answers
787 views

Customizing a blog page layout

I can't find any themes that truly match what I want, so I wanted to customize my blog page by adding to its existing layout given from the theme. However it seems that widgets and plugins that allow ...
6
votes
4answers
15k views

How to delete all records from or empty a custom database table?

I can't seem to find a simple reliable way to do this - perhaps?: // delete row ## global $wpdb; $delete = $wpdb->query( $wpdb->prepare( "DELETE * FROM `wp_table_name`" ) ); ...
0
votes
0answers
8 views

Change the payment method filter text 'None' to 'Manual Renewal'

I want to change the text of the 'none' payment filter to 'manual renewals. Does anyone knows which hook I can use to apply the changes! Thanks in Advance!
0
votes
0answers
10 views

Woocommerce : how to update product image before add to cart?

i just create product with some custom option and based on custom option select by user i am creating canvas image so i just want replace created canvas image with product thumbnail for particular add ...
2
votes
2answers
1k views

How to display custom field on homepage

I am new to custom fields thing. I am working on a movie review site. And wants to add movie story or plot field, I have successfully added the custom field named Story and its content is displaying ...
1
vote
1answer
2k views

How to get the value of input hidden html from text editor to custom page template?

I have 10 or more input hidden in 10 or more pages with different values in Wordpress text editor and I want to get the value using $_POST in a custom page template. How to do this? I tried to called ...
0
votes
0answers
15 views

Change star rating icon

I'm making my own website and i wanted to know if someone could help me(Or guide me) to change the star rating icon it comes by default with the template with a custom one, the webpage i'm talking ...
0
votes
0answers
17 views

How to make a script load after Custom Block is loaded in the editor?

I'm trying to make a Custom Gutenberg Block, but I'm having trouble with loading javascript that goes with this block. On the front-end it works fine, but in the editor it seems that the script ...
1
vote
2answers
458 views

Auto login from custom registration form

I am trying to login a user from custom user registration form. My Code for Custom user Register is function register_user($data) { $userdata = array( 'user_login' => $data['...
0
votes
1answer
2k views

Add attribute taxonomy through code don't appear in admin product page

I've inserted the attribute manually after inserting new products through code: $attributes = Array( "type_product1" => $data1, "type_product2" =&...
0
votes
1answer
281 views

How to edit alternate inactive themes in “Appearance -> Customise” screen?

My current 'active' theme on WordPress is not mobile-friendly so I recently added a mobile-friendly theme (currently 'inactive'). I intend to keep my old theme active for desktop and use a theme-...
0
votes
1answer
17 views

Modified core/image rendering not showing in posts - only on pages

I followed this suggestion to slightly modify the rendering of the core/image block. This works perfectly for images on pages. But I need the same rendering also in posts. But the method above does ...
3
votes
1answer
2k views

How to enable edit button in the theme's customize UI?

I saw on WordPress.com's theme customizer has this little blue (with a pencil icon in it) edit icon, they are SUPER user friendly! But seems default wordpress.org installation does not have it! Is ...
5
votes
3answers
5k views

How can I hide a category from Contributors in the edit/add new post screen?

I have a situation where I need to hide a specific category and it's children from users who are logged in as Contributors. I don't want them to see this category and it's children in the categories ...
1
vote
1answer
924 views

Replace shortcode in substring

I've created these two functions to toggle between the first paragraph of the content and then everything but the first paragraph so when the user selects 'More' it slides out the article smoothly ...
1
vote
2answers
903 views

Category-slug.php not being used

I have this category-newbie.php template in my theme. And I have the category "newbie" in categories, but it is not using newbie it is using the category.php EDIT:
2
votes
1answer
2k views

Woocommerce add to simple product attribute programmatically

i want to create a function which will add to specific products an attribute programmatically. i use the below code but it doesnt seem to work. $attributedata = Array( 'pa_color'=>Array( ...
1
vote
0answers
122 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
2k views

Duplicate Custom Post Type and Taxonomy Slug

I've seen a few questions that are very similar, but I haven't been able to get an exact answer, so I'm going to explain my situation here. Quite simply, I need the following url structure: site.com/...