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
1answer
41 views

why post_class() function apply css classes to all other files?

I use the post_class() function to add a custom class of CSS like width and display property. But it applied to all other files like the about page, contact page. I tried to use the WordPress class ...
1
vote
1answer
15 views

How to change popular term checklist title when edit post?

I have a title_custom field in the article category. How can I show that field in place of the title in the category selection box when editing or adding posts? It's in the function ...
0
votes
2answers
193 views

Get users based on month ACF datepicker field

I have an ACF field 'date_of_birth' which stores the user's birthday, examples: 20201226, 20151225, 19980701 Goal: get all users which have their birthday this month, or next month. I currently have ...
1
vote
1answer
18 views

How Do I Remove The Right Hand Block On The Main Header?

I want to expand the main header across the full width of the page. Currently, the surrounding colour block around the text box, seems to stretch above the top menu bar on the right, and it looks ...
0
votes
0answers
9 views

Ultimate Members Default Post Layout problem

Hey Developer & Coding Expert I Am Using A Child Theme In My Wordpress Site . And Also Using Ultimate Member Plugin For User Profile . When Any One Click On Users Profile He Will See All Post Of ...
0
votes
0answers
48 views

Delete a column in edit.php generated with a plugin

I would like to delete a column from the list of my posts in the backoffice. I found out how to remove the categories and tags column. I would like to remove the "Status" and "...
0
votes
1answer
110 views

Customizer options limited to specific user roles?

Is it possible to limit the selection of a specific customizer option to user roles? Right now I have this custom control: $wp_customize->add_control( 'checkin[theme]', array( 'label' => __('...
0
votes
0answers
5 views

Product page not found if product data is set Appointment Service

I installed the booked plugin and integrated with Woocemmerce. When I checked the product type to be appointments service, why was my product page not found on frontend. where is the code i need to ...
1
vote
1answer
23 views

Category selectable homepage

I've got a local Wordpress install that I've tried to make customisable by users, so it only shows pages from categories they have selected. I've used the code that I've found in the thread How to Set ...
0
votes
1answer
21 views

How to create a field in customize and show that in header.php?

I am new to WordPress coding and learning this from stackexchange, I am trying to create one WordPress website from scratch, in header I want to show contact information for example phone number, I ...
0
votes
0answers
125 views

Block direct access to thank you pages

I have parent pages which are downloadable resources. On these pages, people will fill in a form and then be redirected to a thank you page. The thank you pages are child pages. I would like to block ...
0
votes
0answers
146 views

How to crop image in WordPress with aspect ratio for any size of image

I am using following function for cropping image in wordpress and I want to crop image in 1:1 aspect ratio. When I upload large image compared to specified size in function it works well but when I ...
0
votes
0answers
20 views

How do I add a dropdown menu to a form?

I am trying to create a dropdown list that will insert numbers based on numbers already used for that group of numbers. Example: dropdown will include numbers such as (100, 200, 300, etc) and I want ...
1
vote
1answer
134 views

How to use <LinkControl />

I am a beginner in WordPress development looking to build a block with tab navigation using <LinkControl />. I am still learning, so any guidance/materials/code examples will be appreciated. My ...
0
votes
2answers
254 views

What is my error trying to create a new table in the database?

I tried creating the tables in different ways and I always get the same error: "Error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the ...
0
votes
0answers
49 views

I want to embed mystream video in my wordpress site

I want to embed mystream videos in my wordpress site but when i paste the embed link in the editor, its say that they can't do that. Is there a way to do that?
0
votes
2answers
383 views

How To Load an HTML File As A WordPress Page (With No 301/No Redirect)

Here's what I'm trying to do: Page URL: https://example.com/the-page/ What it should load: https://example.com/content/oct2020/index.html When visitors go to the permalink /the-page/, I'd like that ...
0
votes
0answers
18 views

I want to fusion the product columns in email table order

I have an E-commerce apparel Website (for T-shirts and hoodies, etc...) with a design studio. The customer can order products in 2 ways… either a blank product without entering the designer studio by ...
0
votes
1answer
609 views

What values can we use in `formattingControls` parameter in RichText component

Documentation says: formattingControls={ [ 'bold', 'italic' ] } // Allow the content to be made bold or italic, but do not allow other formatting options ... but I can't find a list of all the ...
0
votes
0answers
81 views

Current menu item highlights wrong

The menu is with different types of links equipped. The first is a link to a subsite. The other is with to an anchor link. The problem is that the anchorlink is highlighted on the homesite. If I don't ...
2
votes
1answer
446 views

Include Sticky Posts with Custom Query

I'm working with Custom Query in WordPress, Basically, I'm showing 4 most recent posts of a category having ID 4 and my query is as follows:- $args = array( 'post_type' => 'post' , 'orderby' =&...
1
vote
0answers
30 views

Multiple Images/ Slider with custom post [single.php] [closed]

I am looking for a approach to add multiple images option under the Feature image section in wordPress custom post type. I will integrate/implement these images on single.php file where I want to show ...
-1
votes
1answer
151 views

Custom template not working for existing pages [closed]

I was playing around with using a custom template per page. (Because I need to load different post types per page). When creating a new page, and link my custom template to it via Page Attributes, it ...
0
votes
1answer
32 views

Creating a shortcode by pulling in a custom field from a plugin

I have this shortcode code: add_shortcode( 'dashtest', function () { $stringtest = "This is $wpc_cf_scorp"; echo $stringtest; } ); It is attempting to pull in a custom field created by ...
0
votes
0answers
14 views

retrieve "Link Color" value

I've set the Link color using the color picker in the front end. I want to use this color for buttons on the site so I used the following code in header.php <style> .btn{ background-color: &...
0
votes
0answers
40 views

Wordpress next post by ajax call on button click

I have an archive of custom post type "Trivia" where I want to display next custom posts on click of a button "Next Post" I have this code for displaying 1 post on archive page: $...
0
votes
1answer
111 views

Adding a custom field to a slug

I'm using the WP Job Manager plugin, and want to add the company name field to the slug automatically when I save a post. I've got it working using the code below, but once I save and then edit the ...
1
vote
1answer
30 views

Hide wordpress field if data is empty in post!

I'm using this code to show my field: <?php echo '@ ' . get_post_meta(get_the_ID(), 'Author:', true); ?> When I add a field in my posts it shows it with no problem but for posts that I don't ...
0
votes
1answer
74 views

Create API's for custom-post types & custom queries using REST or Graphql

I want to create a cross-platform app using rest APIs for the website (zoetalentsolutions.com). The website is in WordPress and has custom post-types, fields & custom queries. This app will not ...
0
votes
2answers
32 views

Measure time in ONLY HOUR format

I need to change the timeformat in this column to be in hours, not measured in seconds and minutes. This meaning that 30 minutes should be measured in 0.5 hours and so on. I think I need to edit this ...
0
votes
0answers
33 views

Add admin page for specific post status (for example)

I have posts in the wordpress administration. These posts have statuses and an author I would like to be able to create several types of pages in the wordpress administration which will be identical ...
0
votes
0answers
45 views

Save_post - Warning: Cannot modify header information

I'm trying to populate an ACF field on save (updating or creating the post) while running a geolocate function using mapbox. I'm getting a cannot modify header information error when hitting the ...
1
vote
1answer
469 views

WordPress customizer Preview not loading

I'm creating a WordPress website, today I have tried to add some new features but I'm not able to add because customizer live preview is not loading I have done some steps Update all theme and plugin ...
0
votes
1answer
23 views

Inserting a class on before_widget if checkbox is checked

I have a check box showing on all widgets, a simple option to double the size of the widget on the frontent. function doublesize_option( $widget, $return, $instance ) { $large = isset( $instance['...
0
votes
0answers
22 views

Cannot add custom css in site

I am trying to add custom css in my wordpress site. It is possible until before 2 days. From yesterday I couldn't update the css. Instead it is showing some error. So I have decide to edit directly in ...
0
votes
1answer
88 views

Query Product categories what have a custom field

Im trying to build a page template on wordpress that will show a list a categories that have a custom field checked. So the taxonomy is just the default woocommerce taxonomy product_cat I then have a ...
0
votes
1answer
193 views

How to get custom page template being edited in gutenberg editor

I want to know custom page template name (the one chosen in page attributes - template) in PHP, before page opens in order to enqueue additional scripts according to chosen template. I know how to get ...
0
votes
1answer
22 views

Get /users/me details from Wordpress backend

Is there anyway to get the same details as /users/me api command but in WP backend? I have backend function that would get the user meta details custom api /user_meta public myFunc( $userId ) { $...
1
vote
1answer
799 views

Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block

I am basically creating a Custom Carousel Gutenberg Block. It qould be a carousel at the front end and I plan on using a Gallery Block to add images to the carousel. The carousel would be loaded using ...
0
votes
0answers
77 views

mailchimp integration on a custom footer

I want the user to be able to opt-in to a MailChimp newsletter within a custom footer, which one. of our clients has asked for. The client also uses MailChimp so we therefore cannot use anything like ...
0
votes
1answer
15 views

Can't Customize Wordpress Page

When I click to customize my page, I get the spinny wheel. I've tried restoring to previous days on my site, but am having no luck. Thank you for your help.
1
vote
0answers
70 views

How do I change the markup only of a built-in widget?

I'm developing a theme and I'd like to slightly alter some of the HTML output of some of the built-in widgets. As of now, I managed to change the sidebar search widget by creating a searchform.php ...
0
votes
1answer
30 views

Making a list that can be filtered by category/tags

I want to create a list of organizations that users can filter by location, service (legal help, federal services, etc.) to create a list of what exact organizations fit their needs. Is there a plug-...
0
votes
0answers
115 views

How to use WP conditional tag in a functions.php with OCEANWP Theme?

Theme - OceanWP Page Builder - Elementor Single Post templated created using Elementor I am trying to add custom code for the SINGLE BLOG POST. Using a conditional tag "is_single", I want to ...
0
votes
1answer
38 views

ACF unable to use user field

I am totally new to wordpress and acf and I'm trying to use a user field in a post to show the author of the post. I tried to programatically add the post author id as a meta attribute in the ...
0
votes
3answers
1k views

Bootstrap slider not working

I have a html bootstrap slider which works fine with captions and everything.I would like to integrate it into my Wp theme (my forst one, so total newbie).I found a code, which seems to helo, but it ...
0
votes
1answer
19 views

If Statement is Ignored?

I’m trying to update a boolean custom field based on whether a post has ‘expired’. A post is considered expired when its publish date exceeds 30 days. To check this, I am retrieving the post publish ...
0
votes
1answer
177 views

custom post type and user post count shortcode

Hello i m a newbie in php and Wordpress development. I was struggling to get a user custom post count in my wordpress/buddypress site frontend. i m using this code: // add [author-post-count] ...
0
votes
0answers
21 views

Use Theme CSS in custom code

I'm busy creating a page with Divi, which contains various forms, that will be used for calculations. Is it possible to use the same css stylesheet as the theme? This will ensure that custom code is ...
0
votes
1answer
115 views

Display User ID instead of Name or Username

I have BuddyPress installed in my WordPress. I don’t want to display the name or username in the profile of member, instead just User ID, like below Avatar instead of member’s name it will just show ...

1
3 4
5
6 7
100