Questions tagged [customization]
MEANINGLESS tag. Used as a merge target for other meaningless tags. Do not use it on new questions.
5,080
questions
0
votes
1
answer
489
views
How do I know if the user is a customer?
I'm using Woocommerce and Dokan latest version.
I need to check if the user is a customer of that vendor. In this way, I will show the customer some information about that product or seller.
First I ...
0
votes
2
answers
68
views
Add a searchbox to the body of a page
I'm creating a website in which I need that, when I click on one of the tabs of the specific menu, and it opens, this page contains a search box in its body.
My question is how can I add this search ...
0
votes
0
answers
21
views
search form for custom fields
I want to create a custom search for pin code search with custom fields value.
When exact match with pin code will show the post data
Can you please help me?
Any help in this matter would be ...
0
votes
1
answer
39
views
How to put the author of the post in the comments?
I need to put the name of the author who wrote the post and I can't find the solution.
EXAMPLE:
Rachel [06/03/21] : Commented in the post "How to be a Web Designer", written by: POSTAGE ...
0
votes
1
answer
319
views
How to print Array values of custom Fields Meta?
How to print array values for custom field meta.
My code -
<?php $item = get_post_meta($post->ID, 'occupationalCategory', false); ?>
<?php print_r( $item[0]['occupationalCategory'] ); ?&...
0
votes
1
answer
392
views
display text generated via custom get query string
I'm trying to display some text on my page, generating it via get query string, e.g. calling this url:
mysite.com/page/?letter=exampletext
If I understand correctly in such cases it is needed to "...
0
votes
0
answers
132
views
Search for custom field input of a custom post type in ajax live search
I have a custom post type (gd_place generated through GeoDirectory) with a custom field (select_funding as part of the table wp_geodir_gd_place_detail) where a user can choose one out of several ...
1
vote
0
answers
23
views
Is there a way to modify a core admin page table? [duplicate]
I would like to modify the "pages" section of WordPress dashboard to add this custom column "views" to tell how many times one page was viewed. Is there a way to do this?
0
votes
0
answers
34
views
Custom admin menu items
I'm very new to Wordpress, familiar with CMS though.
I am taking over someone else's wordpress website, by comparing with other wordpress, I found this one has some admin menus that the other doesn't ...
0
votes
0
answers
97
views
If Term Name Exists, Append a Unique ID to Slug
How would I go about adding a unique ID to a custom taxonomies slug?
We have multiple users who can create their own taxonomies.
The problem occurs when two users wish to create a taxonomy of the same ...
0
votes
1
answer
1k
views
Create page template via functions.php?
I want to create a new selectable page template for users that will allow them to identify which pages on the site are "Service" pages (eg plumbing, gas fitting, etc). The template is an ...
0
votes
1
answer
79
views
Make page template that is just an "include" of another?
I would like to create a page template in my child theme called "Services".
This template is identical to page.php - except that I just want to add some JSON LD (ie, https://schema.org/...
0
votes
1
answer
114
views
wp_set_object_terms creates taxonomies but does not add custom posts to it
I am trying to call wp_set_object_terms in a function hooked to custom post creation (via wp_insert_post_data) to set taxonomies tags for the post from a custom field:
$item_brand = ( ! empty( $_POST[ ...
0
votes
1
answer
28
views
Easily add custom HTML outside the main container?
My theme has set the max-width of the main container smaller than the screen size, and I'm searching for a way to override that in order to add a fullscreen video background.
Is there a relatively ...
0
votes
0
answers
17
views
How can Use custom input field in functions.php page?
I have if clause to add action in functions.php page. But I want to give condition value from dashboard as a custom input instead of defining it functions.php. When I am trying 'echo get_field('...
2
votes
1
answer
89
views
Auto add taxonomy if post has category
First off this is my first time posting on here. I can usually do research and put together code that I need based off of other's responses, but I'm stumped on this one. I've been at this for almost a ...
0
votes
0
answers
38
views
We are facing this error in header unable to understand the issue
call_user_func_array() expects parameter 1 to be a valid callback, function 'add_search_form' not found or invalid function name in /home2/zeonu81d/public_html/wp-includes/class-wp-hook.php
Please ...
0
votes
1
answer
323
views
customer specific email attachment
I'm working on a website (client-side in Angular) and basically use WordPress as a “headless CMS” to be able to use useful plugins like “Woocomerce”.
Problem:
Based on customer input on the website, ...
-1
votes
1
answer
567
views
Adding Custom HTML/CSS/JS code in specific page
I've written a HTML/JS code, it's something like a survey which consists of code like this:
<div class="Question">
<h3>1. I have the knowledge of procedures needed for ...
0
votes
1
answer
2k
views
Change Successful password reset message
After password is reset in Wordpress, the message comes as "Your password has been reset. Login"
How do I customise this message?
do_action( 'validate_password_reset', $errors, $user ...
0
votes
1
answer
934
views
str_replace with the_content is not working
I am trying to replace the a URL of the content with php. i tried the code mentioned below but it didn't work. is there any way to achieve this with php only?
function replace_text_wps($text){
$...
0
votes
0
answers
918
views
When is the wp-settings-[time] cookie generated?
I created a custom plugin for login and registration forms.
When I log in for a new user, 4 cookies are set : PHPSESSID, wordpress_test_cookie, wordpress_logged_in_, and 2 wordpress_sec_ .
But I don't ...
0
votes
1
answer
31
views
How to access a wordpress plugin page or add posts without doing it from the Wordpress dashboard?
I am a creating a website on WordPress that uses a plunging called H5P which allows the creation of interactive content. as in the picture below. However the creation of the content is currently only ...
0
votes
0
answers
20
views
How do I run a web app in my WordPress theme without the "wp-content/theme/.../webapp" in URL?
hope everyone's doing great.
I have a web application that's pretty much a folder containing an index.html and some javascript stuff. I placed this folder in my theme folder.
It works perfectly when ...
0
votes
0
answers
190
views
How to replace ACTION url from original wordpress login form?
I need to replace the action of original wp-login login form:
Instead of
<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', '...
1
vote
1
answer
35
views
2 Templates 1 custom post type according url
Let's say i have a custom post type names "Projects", is it possible to have two template like :
Minimal template (with a few info about the projet)
Complete template (all the info)
And ...
1
vote
2
answers
53
views
Create a customizable child theme
Here's the situation:
I've created a child theme that enhances a popular parent theme. The enhancements include CSS, JS, and php. I want to use this child theme on multiple sites, and I want to allow ...
1
vote
0
answers
48
views
How do I move/order posts with a tag to the end?
Let's talk about the situation first.
I have a query for finalists, some of which has a tag 'Special Mention'.
I need to move all posts with the tag to the end of loop.
e.g. I have 13 posts, 3 of ...
1
vote
0
answers
447
views
Add custom field to woocommerce variations [closed]
I want to be able to add external links with documentation for my products.
With this code I added for simple products and it works as I wish:
// This function gets the value for the the custom fields ...
2
votes
0
answers
104
views
Custom widget select options needs to stay selected after save
I am working on a custom widget that includes a select options drop-down list of pages. When I select a page and save, the selected option does not stay selected. However, if I refresh the widgets ...
0
votes
1
answer
58
views
Custom Post Type and Structure Question
I'm working on a site with a structure I haven't seen in the past.
Specifically, the site has Inventory Items (custom post type 'item') that show on Item Archive and Item Single pages.
For some of ...
-1
votes
1
answer
45
views
add custom css on all page exept of one
OK, that was helpful. But I need it a bit more complicated.
I need a script to add a custom css to all pages, exept on one.
How can I do that?
1
vote
0
answers
425
views
changing meta value and meta key of price field
I have theme that uses price field. its price is stored in "S1" meta key.
next is woocommerce that use simple _price meta key to tore price values.
i want that when user enter price in theme ...
0
votes
1
answer
32
views
How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
So my question is where i can place the code to display the taxonomy? i found this code
`function get_taxonomies( $args = array(), $output = 'names', $operator = 'and' ) {
global $wp_taxonomies;
...
2
votes
0
answers
200
views
Hiding Draft Post In Admin
Does anyone know of a way to hide draft post so that when "All" post is selected, draft post is not included?
I tried adding this code to my functions.php file but it lead to an error, I'm ...
0
votes
1
answer
538
views
I want to remove the register/login Wordpress top bar from my website
]1,
This screenshot above shows the functions.php code snippet I tried to use to remove WordPress register/login top bar from my website but so far it haven’t worked. I included the code into a ...
0
votes
0
answers
42
views
Alt text attributes not showing over portfolio images
I´ve been searching almost all posts regarding this issue but haven´t found a solution for my theme. Maybe there´s a kind expert mind that can support me. I´m using a theme that doesn´t allow updates ...
1
vote
0
answers
144
views
how to get the categories for a single product in a hierarchical way
It's the first time I write here, but I really appreciate your work from long time.
Well, I know there is a very similar question, but I can't get out the solution for my particular case.
In a ...
1
vote
1
answer
6k
views
Filter Custom Post Type by Category with Ajax
I've used the below tutorial for my WordPress site to add a filter to one of the pages.
https://www.youtube.com/watch?v=KRc47o8uDhk&list=PLSeCxQ7f7r87qbYmqXmOAcvoshw1e6ewQ&index=3
It works ...
0
votes
1
answer
231
views
Get All Results From Other Users That Share The Same Custom User Meta As Current User
I am pretty new to extending wordpress and trying to get my head around using Mysql and PHP to fetch data into a html table and print it on a wp page.
What i have so far is fetching all form data to ...
0
votes
2
answers
703
views
How to block specific user id in custom login form?
I've been looking for this method for weeks, but still can't find it. There are so many sites that discuss how to create a custom login page, but they don't cover how to block a specific id like the ...
1
vote
0
answers
17
views
Multi Site installation inside a sub domain inside a sub directory
I am trying to install multi site inside wordpress installtaion that currently sits in a sub domain and inside a sub directory.
The folder structure / domain structure is as follows:
stage.domain-name....
0
votes
1
answer
690
views
Undefined variable: user_id in get_user_meta
I got the undefined variable : user_id when i use get_user_meta
$phone = get_user_meta( $user_id, 'phone_no', true );
$icno = get_user_meta( $user_id, 'ic_no', true );
when i try put the above code ...
1
vote
0
answers
582
views
Automatically check parents (in a taxonomy) when child is selected
On my website I have a custom taxonomy which contains a lot of parents, children, subchildren etc. Because of this, it is really long to manually find what I want, so do you know if there is a way to ...
0
votes
1
answer
981
views
Can we set a redirection with dynamic content in url?
I need to redirect users to profile page using a single url.
Ex:
Static link: www.domain.com/profile/
when clicked,
www.domain.com/profile/[USERNAME]/ <-- adds username
i need to change the [...
0
votes
0
answers
187
views
How to make conditional statement in WpBakery (formarly Visual Composer)
I am building a new membership website with WordPress using WpBakery (formally visual composer).
I created a heading text which I linked to my login page, everything works fine but the problem is that ...
0
votes
1
answer
24
views
How do I make mysite.com/comingsoon WordPress to become my main website's WordPress?
I joined Bluehost and then I can create some WordPress, except if it is the button "Start Designing", I cannot make it the top level, root of the website.
If I want to add to top level ...
0
votes
1
answer
26
views
Simple custom attributes on posts
I'm working on a site which will have a dozen of menus. There will be a subnavigation widget below the header. My client wants his content writers to be able to select which menu would show up in the ...
1
vote
0
answers
28
views
How can I turn a custom wordpress page into a product page?
I want to create a custom wordpress template product page using PHP.
I don't want to override the default product page, but I want to register
my custom template page as a product page.
I have created ...
1
vote
0
answers
22
views
Print all the tags from a custom post type Please
I'm looking for solution that will display all the tags that are used on a custom post type.
wp-admin/term.php?taxonomy=tour-destination&tag_ID=316&post_type=tour&wp_http_ref
From a ...