All Questions

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

Thumbail after first paragraph

I try to make future image display after first paragraph with this functions.php code: add_filter( 'the_content', 'insert_featured_image', 20 ); function insert_featured_image( $content ) { $...
1
vote
2answers
21 views

Prevent custom user role to add new pages

How can I prevent my custom user role to not be able to add new pages. I have this array of capabilities for my user role: $args = array( 'delete_others_pages' => false, '...
0
votes
0answers
24 views

CPU 100% usage when login as admin

When a normal user open my site nothing happens, but when i log into my admin area, each page I open even in admin area or in my site, I see 50-100% cpu usage. why?! I disabled cron jobs I disabled ...
0
votes
0answers
18 views

How can I make plugins appear on a subpage of a theme I made on Wordpress from scratch?

I actually didn't build a full fledged custom theme, I just uploaded a static non-customizable landing page I made by myself and just changed it from html to php, uploaded it on wordpress and it works ...
0
votes
0answers
21 views

How to send welcome email once user buys the subscription

I have working on the functionality where I need to send welcome mail to user once he purchases the subscription . I am implementing the above functionality using woocommerce subscription plugin. So ...
0
votes
1answer
12 views

Advanced Access Manager: RESTful endpoint to refresh token

I'm using Advanced Access Manager (AAM) plugin, and have been trying to refresh a still valid JWT token using the /aam/v1/refresh-jwt RESTful endpoing, however I’m getting the following error: “...
0
votes
1answer
39 views

Convert UL to dropdown list not working

I am running a plugin called Divi Staff to show the staff on the website. I don't like how the specialisms are displayed and wanted to convert them to a dropdown list. I have tried to get this to work ...
0
votes
0answers
15 views

How to logged in? after if guest user has check out in woocommerce wordpress [closed]

If guest user has checkout in woocommerce after they(user) logged in and access my product page in wordpress.
0
votes
0answers
16 views

get original request_url (before redirect)

I have a wordpress page and want to add basic auth to the page, except for the wordpress rest api! The main problem seems to be the redirect that happens in the standard .htaccess of wordpress. ...
0
votes
0answers
20 views

How to fix your site does have ads.txt [closed]

I used an ads.txt plugin for my AdSense but I have messages Earning at risk One or more your site does not ads.txt, I use WordPress latest.
0
votes
0answers
16 views

URL redirect regular expressions redirecting all after first viriable

I would very much like to redirect https://www.store.nl/?prodcategory=literal%20category%20name&productid=12345 to https://www.store.nl/literal-category-name/ I'm trying to add the redirect in ...
0
votes
0answers
26 views

Plugin is disturbing the design of the theme [closed]

A plugin that is very important for the purpose of the site is disturbing the theme layout and overall function of theme. (i.e Increasing the width of the sidebar) Menu dropdown not loading properly, ...
0
votes
1answer
39 views

Add word to permalinks does not transform the urls

Let's say I want to add the permalink for the URLs: site.com/section/{postname} and the 'section' matches the name of one post's category (just for one case). After having a moment for study the ...
0
votes
0answers
18 views

WordPress Admin - Automatically Sort Custom Posts by Custom Field Date Value in d-m-Y Fomat

I have a custom post type called 'Courses'. I'm currently trying to automatically display them in the dashboard 'Courses' post list sorted by a date value specified in a custom field. The date value ...
-3
votes
0answers
19 views

Premium plugin license to protect code [closed]

What license should I see for premium plugin ? Should I see GPL or my own ? I want to protect from being bought and copied of course..
0
votes
1answer
24 views

Add class to <ul> on sidebar widget

I have been looking on stack overflow and the web but can't find a simple solution for this. I just want to add a class to the of the widget sidebar generated by Wordpress. This is my register ...
0
votes
2answers
33 views

loop in single.php of the same category

How can I put a loop in my single.php that shows the posts of the current category of the single and following the code structure that I have? The question comes, because I can not find the correct ...
0
votes
0answers
38 views

Why embedded PDF documents sometimes failed to load on my website

My WordPress site Reload on every hour, and sometimes some of the PDF documents (random) don't load. All embedded PDF's are only one sided. Why is this happening? UPDATE: This happen only on Chrome ...
-2
votes
0answers
14 views

Sync Products with my Custom Software [closed]

I have a software on which all products are already added. i want to sync all of them with my wordpress Woocommcerce. Though i am not a php developer and this task is assigned to me. I require all the ...
0
votes
0answers
18 views

Any way to get more space for editing post excerpts

Using latest WP with Gutenberg. The excerpt metabox is (as you'd expect) over in the right column with the Document settings. Is there any way to get it out of that column and into the main area ...
0
votes
1answer
18 views

why css doesnt work when i change my file of wordpress and sql to another computer?

HIII, I've developed a website using "Elementor" and when I copy the file sql and the file wordpress installed on my disk , I moved these files on another computer and I put it the file and run sql ...
0
votes
1answer
33 views

function class doesnt work

i added a menu to admin bar menu but it's style doesnt work;it looks like has default style <style> .my_menu_item_class{ color:red; background: yellow; } </...
0
votes
0answers
52 views

Unwanted word behind my title in SERP

Can anyone here help me about my title problem in google? My title in google result page do not exact match with my title tag. If you search with keyword "itclax furidacchi" in google, my title there ...
0
votes
1answer
19 views

I am trying to load a Js Dynamic Audio Synth

I saw a working Javascript Piano which I would like to implement on my page as a shortcode. I have already enqueued the Js file, and I can see it when I view my page source. This is how I enquued it:...
0
votes
1answer
19 views

is_page_template showing partial results

Trying to load conditional content thru the header, but only front page is being identified correctly. Archive, post and custom type templates aren't. Using Query Monitor to identify correct ...
0
votes
0answers
13 views

Third Party Authorization Plugin for Wordpress [closed]

I am trying to create a website that follows the format of TV Apps and cable providers were in order to access the content of my website, the user needs to be able to sign in with a third party auth. ...
0
votes
1answer
28 views

Function to replace the url of featured images in the wordpress database?

Sometime ago I uploaded all images of my wordpress installation to the /media/ folder. So urls where something like this: http://example.com/media/featured-image-2010.jpg This folder is very, very ...
1
vote
1answer
33 views

Classified ad website : which solutions to use? [on hold]

I'm currently working on a quote for a company that want to open a new classified ad website. I never worked on a project of this type and I would like to have some advices from more experimented ...
0
votes
0answers
11 views

Load respective custom field as input field when the select option is changed

I have 2 custom Posts Type Subject Clusters ( is a group of subjects) Subjects So when a new cluster is saved, it saves a group of subjects. Subjects (2nd custom post type) can be added via a ...
0
votes
1answer
14 views

Merge wp_get_post_terms

I have this code while( $animes->have_posts() ) { $animes->the_post(); $i++; $animeID[$i] = $post->ID; $args = array( 'orderby' => '...
0
votes
0answers
18 views

I am trying to set post terms to a custom taxonomy

I have a custom taxonomy that I would like to update on posts using a PHP function. An example of what I am trying to achieve is the following: Array ( [0] => WP_Term Object ( ...
1
vote
1answer
10 views

Redirect from different port to subdomain - htaccess

I created a Digital Ocean instance to install WordPress website 5 days ago. I already have my own domain, and created DNS Subdomain blog.example.com. The server runs both nginx and apache so my Apache ...
0
votes
3answers
41 views

ACF Relationship + WP Template Parts

Any help with this would be greatly appreciated - I've been grappling with it for days :) I have 2 post types - product + offer I have an ACF relationship field related_products. This field ...
0
votes
1answer
26 views

Programmatically add Yoast meta description after post save

I'm building a website and I need to have the Yoast description programmatically added after saving a post (a custom post type in my case). Now, since I'm using Advanced Custom Fields, and I also ...
0
votes
1answer
11 views

Woocommerce Increase & Decrease Price Auto [closed]

Greatings, How to decrease or Increase products and variations prices on shop. I need to Increase or decrease on single product, categorie.. Maybe there is a plugin for thaT?
0
votes
0answers
20 views

Hook into Plugin to change text

I use a wp Plugin where you simply can create tables in the admin area and then in the front end you can add something to the table using a form, there I have a Button with the Text (New entry) and ...
0
votes
0answers
9 views

Prevent redundant permalink category base and parent category

My permalink category base is mysite.com/news/ and most of my categories are placed underneath a parent category named news so I've got a ton of category list pages that all start with mysite.com/news/...
0
votes
1answer
13 views

Generate Static Page to Show Search Results/Detail for API

I'm fairly new to WordPress, but well seasoned in PHP. I've looked around for other examples, and most of the code samples I see are all about creating posts and hooking around the search results ...
0
votes
0answers
20 views

How to programmatically put wordpress in maintenance mode

I used this code for several years now: add_action('wp_loaded', 'check_maintenance_mode'); function check_maintenance_mode(){ global $pagenow; if(defined('IN_MAINTENANCE') && ...
0
votes
2answers
32 views

How Do I change Markup of a link in Wordpress

first off, I am sorry if this question has been asked before, don't seem to get it. I would like to change the markup of link in Wordpress to something like this <a href="#" class="s1 s1--top" ...
0
votes
3answers
16 views

Get custom taxonomy value of post and output posts in same taxonomy

I'm trying to show related videos on my single post template. I've set up a custom taxonomy called 'sub-category' in Posts. I want to get the sub-category of the current post and loop through any ...
0
votes
0answers
21 views

How can i add condition for editing post with a field

I’m trying to add a conditions to specific post for editing. I have got post type clients. And this post type have got client_manager field(acf). client_manager field is getting a user on system. When ...
0
votes
1answer
35 views

Make Widget appear on Dashboard

I recently created a widget in my functions.php with following code : register_sidebar( array( 'name' => __( 'Informations importantes', 'twentynineteen' ), 'id' ...
0
votes
1answer
22 views

Woocommerce - wc_cart_totals_shipping_method_label() breaking out option tag

I'm trying to change the default cart-shipping.php template to use a dropdown menu rather than radio buttons. I have successfully managed to do this on the cart page by changing the printf function ...
2
votes
1answer
17 views

Woocommerce: Remove variant options from admin new order email

I would like to ask for some help / advice. Currently, we use the admin new order email as a picking list that gets printed off, but we now have an average of 3 variations per product and the printed ...
0
votes
0answers
21 views

How to refresh media library without refreshing page

I'm trying to update the contents of the media library after adding a new image. I use this line for this wp.media.frame.content.get().collection._requery(true); but it does not work after opening/...
0
votes
0answers
19 views

Wordpress menu hides when i add custom shortcode

I built a plugin that generates a fullpage tab after a shortcode is called but for some reason immediately the shortcode is called the main menu hides on the page. My custom css is shown below ...
-2
votes
0answers
17 views

How many courses a did user complete How to find a category based complete course number? [closed]

Please help Need Urgent I'm using LearnPress LMS plugin How many courses a did user complete How to find a category based complete course number? I create two categories from the course category ...
-1
votes
0answers
11 views

Auto compute fields with lookup table [closed]

I am looking for a solution on how to have an auto compute fields that is working like an excel with a look up table. I am trying to compute salary base on experience, years in field, industry, and ...
0
votes
1answer
45 views

Help using ShortCodes to style whole chunks of the post

Recently my sites got hacked, forcing me to start rebuilding them from scratch. It's been ages since I spent time on them, so I don't even remember the plugins I'd installed and used. One of them, ...

15 30 50 per page