All Questions

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

How to change Permalinks only for Blogposts

I would like to customize the permalink for all blog posts. Right now they are the same as pages so like this: https://url.com/blogpost However, I would like to customize the permalink structure for ...
Michael's user avatar
0 votes
1 answer
31 views

No inline css, simple css file?

I'm struggling HARD to simply adjust css. Wordpress creates a lot of unneccessary inline css, with styles for every block of content. As of right now we’re up to ‘.wp-block-78’ or something like that, ...
Jerome Stephan's user avatar
0 votes
1 answer
436 views

How to get a database field value from a WordPress table? [closed]

I'm bumping my head against the wall here. I have searched here on SE and found several answers, but somehow they don't work for this scenario. I have WordPress + MemberPress and I need to retrieve ...
Maurice's user avatar
  • 25
0 votes
2 answers
87 views

Can't use updated variables in handle function

I have some problem with the wp-background-processing that's when I change the $url in another file using $this->process_single->url('https://anotherexample.com'); the url won't update in handle ...
Erfan Paslar's user avatar
1 vote
1 answer
421 views

How to force the Author Dropdown to display in Quick/Bulk edit?

I believe this issue is a bug with the latest version of WP on multisite (I've reported it) but until they fix it I really need a simple solution. I have multiple authors (Administrator and Editor ...
user3593214's user avatar
0 votes
0 answers
39 views

Function to Compare CPT Post Custom Value with Default Posts CF Value

I want to create function for compare custom field values of CPT Posts with default posts CF Value. As of now I implemented below code in template file which is working fine, but I want to create ...
Puneet's user avatar
  • 47
0 votes
1 answer
51 views

Best Way To Locate Offending WP Table

I am trying to import a production db into local test db. Problem I can't locate and therefore can not exclude a table from the wp db export eclude_tables=.... command, which contains a path that only ...
mjones's user avatar
  • 153
0 votes
1 answer
224 views

Registration fields prefilled with URL parameters

I’d like to invite some users via email to register and would like to prefill the user registration fields, such as A.) username and B.) email. Unfortunately it is not working and my JS skills suck... ...
VolkerHarz's user avatar
0 votes
1 answer
124 views

comment_approved custom value

I want to modify comments with an additional 'comment_approved' value. This value will be used elsewhere in a plugin that uses wp_list_comments. Looking at the wp_set_comment_status function, I see ...
Rick Hellewell's user avatar
2 votes
2 answers
1k views

Check if specific role exists

I'm trying to write a function that checks if a specific role exists. I found the following code on the web but it doesn't work for me: function role_exists( $role ) { if ( ! empty( $role ) ) { ...
Francis Bégin's user avatar
0 votes
1 answer
79 views

How to replace plugin icon?

Could be a silly question, sorry for this but is my first wordpress plugin. I would like to change the icon that appears in the update page: How to do this? Unfortunately I cannot find anything in ...
sfarzoso's user avatar
0 votes
1 answer
36 views

How can i change the nicename and the displayname in a bulk in the database?

On my website, I use a membership plugin, which signs up my users with their email-addresses for the username. Now I need to update the nicenames and also the displaynames to the IDs from the users ...
HarleyQuinn's user avatar
0 votes
0 answers
64 views

Absolute and relative paths

Hello I am new to this and i want to export my local made website on xampp and add to hosting ( live ) and i need relative paths in theme and everything but i have Absolute how to change it?
Adam's user avatar
  • 1
0 votes
2 answers
29 views

Can a taxonomy of a custom post type be called 'category'?

It seems not possible to write : register_taxonomy('category',array('events'), array( 'hierarchical' => true, 'labels' => $...
nico's user avatar
  • 25
0 votes
0 answers
105 views

Weird nonce validation problem

I have a front-end form (ie, should work for non-logged-in users) with a nonce - "my-nonce-name". The problem is that it sometimes verifies upon submission and sometimes not, for - to me - ...
yms's user avatar
  • 35
0 votes
1 answer
97 views

Custom theme – Bootstrap CSS not loading via wp_enqueue_style or otherwise

I'm designing a custom Theme using the underscores.me template. I've read several different "my css doesn't load" articles on this topic, but none seem to help w/ my issue. My own styles ...
Sylvester DeMouser's user avatar
0 votes
1 answer
26 views

show posts under custom post type with same autj

there are several authors on my site. I have a post type called jobs and I have a few articles where the author of the articles and post type jobs are the same, how can I show the articles of each ...
milad alavi's user avatar
1 vote
0 answers
96 views

Remote Export DB w. WP-cli.phar Over SSH

I am trying to export a remote wp db using the following: source_gzip_db=git-dumps/export.sql.gz source_path_to_wordpress=/home/username/public_html source_ssh_host="123.456.789.12" ...
mjones's user avatar
  • 153
0 votes
1 answer
521 views

Get_term with meta_query

I can figure out this query : my purpose is to have a list of taxonomys (category like) with the number posts related to AND from today, ignoring post with a taxonomy's date before today. Something ...
nico's user avatar
  • 25
0 votes
1 answer
94 views

Override the default password length when creating or updating a user profile

I may be missing something. My understanding is wp_generate_password is pluggable. When I run the function below, it doesn't change the password length in the display when adding a new user or ...
Motivated's user avatar
  • 205
0 votes
1 answer
40 views

Alternative to Underscore.me for gen custom blank theme [closed]

I see that the website underscore.me is no longer available for generating Wordpress theme templates. Is there an alternative to underscore.me for Wordpress theme generation? Best regards!
Sylvester DeMouser's user avatar
0 votes
0 answers
76 views

Wordpress error

Hell, I have an error: Fatal error: Uncaught Error: Call to undefined function apply_filters() in /home4/smakolyk/public_html/pcwordpress/wp-content/plugins/woocommerce/includes/admin/importers/...
Jakub Troczyński's user avatar
0 votes
1 answer
371 views

Bullet List Indentation not showing up in the wordpress

In wordpress, I have written on article and in that I have bullet list to showcase but my indentation is greyed out, and not able to indent the list further as you can see in the sreenshots. I want to ...
ss-ss-v1's user avatar
0 votes
1 answer
389 views

how to get the url of a custom uploaded file

For a custom function I need to generate a file, upload it to the upload folder and also access the upload file afterwards to attach the file to an email. For uploading the file I use the ...
Missblues's user avatar
0 votes
1 answer
238 views

WordPress GiveWP Plugin showing blank page in none default theme [closed]

I am using the GiveWP plugin with a U-Design theme. The donation page shows preloader for short time then turn into a blank page: I.E. In this page: https://www.podrsd.org/donations/support-needy-...
Guru's user avatar
  • 3
0 votes
1 answer
25 views

WooCommerce: write featured image dimensions to custom fields in product'

It's all in the title. I'm somewhat handy with php, less so with WP hooks and subroutines. When I originally select (or later change) a featured image for a product, I want the pixel dimensions of the ...
Joe Foe's user avatar
0 votes
0 answers
48 views

WP query with multiple custom meta not respecting orderby

I have created a wp query to pull a series of posts that have one of three categories (current, upcoming, or past) and I used the multiple custom meta array technique as I want the posts to display in ...
dmkc's user avatar
  • 1
0 votes
0 answers
18 views

How to change post cpt with submit button?

Εvery post must have an submit button and when user click it then the post goes to another cpt. function click_button() { $button= '<form id="formid" action="button.php" ...
Lefteris's user avatar
0 votes
2 answers
504 views

Rest api request throttling

Couldn't find any information, so here I go. Does WordPress have a native request throttling behavior or not? For instance Laravel gives you https://laravel.com/docs/9.x/rate-limiting If not I know ...
Steve Moretz's user avatar
0 votes
0 answers
244 views

get_the_post_navigation not working

I am using a custom post type with 9 posts. Whichever post I click on the_post_navigation shows the same post. When I go to that post it shows the only other post in its taxonomy. From then on I can ...
Badger's user avatar
  • 191
0 votes
1 answer
35 views

How to access values from your own settings page in javascript?

I added may own settings page for my plugin with php. Furthermore I need to access the values from two inputFields from the settings page after someone clicks on a submit button on the public page. My ...
bn 41's user avatar
  • 1
0 votes
1 answer
14 views

How react js and other Javascript Technologies works on WordPress plugin?

I hope you are doing well. I want to start developing a WordPress plugin and this time I would like to do it with react at the front end. However, I have a question: If I ever create a WordPress ...
leonel kenfack's user avatar
0 votes
1 answer
940 views

Add custom css class to wp-list-table row for custom post type

Is there any way to add a custom css class based on post data in the custom post type admin table?
ZecKa's user avatar
  • 738
1 vote
0 answers
552 views

Get permalink in custom post type loop doesn't work

I can't wrap my head around this and yes I've tried to flush the permalinks etc... I've never encountered this before and a week ago it worked - I have not changed any code and it works on another ...
stefanweei's user avatar
0 votes
0 answers
114 views

WP Recommended Table Exclusions?

I just re-designed my WP work flow to utilize 2 bash scripts (push.sh & pull.sh) that I wrote that will push/pull my files with git, upload/download & import/export my dbs using rsync and wp-...
mjones's user avatar
  • 153
0 votes
0 answers
73 views

Creating custom permalink tags in the database

Is there a way to create custom permalink tags (%customtag%) in the WordPress database and/or programatically? I am having a hard time looking through the database structure finding where in the ...
Philoxopher's user avatar
0 votes
1 answer
114 views

Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error

wp-admin showing ERR_TOO_MANY_REDIRECTS Error and can't let me login into dashboard but Other pages loading fine. FIXED
rawaha johns's user avatar
0 votes
1 answer
46 views

Modify the third (context) parameter in a filter?

I understand that the following filter modifies the parameters of the authentication cookies, in fact I have managed to modify its value since it is the first parameter $cookie, but what I need is to ...
truemar's user avatar
0 votes
0 answers
32 views

How to automate the creation of advanced layout article/post

I try to describe my needs to know what would you suggest me. Every morning I have to read 10 Newsapers. Then I have to resume all the Economical topics in many articles (like forex, gas price, gold ...
luke_ar's user avatar
0 votes
2 answers
268 views

Prevent FormTokenField component to accept random entries

FormTokenField component has suggestions property which provides a list of suggestions when user start typing. But, FormTokenField also accepts any value, if separated by comma, even if it is not ...
Tahi Reu's user avatar
  • 226
0 votes
1 answer
12 views

WordPress emails error regarding the argument type even if the type is correct

function test_sort_terms_hierarchicaly( Array &$cats, Array &$into, $parentId = 0 ) { if ( is_array( $cats ) ) { foreach ( $cats as $i => $cat ) { ...
brittle_spirit's user avatar
0 votes
0 answers
26 views

Neither update_option nor delete_option fires in deactivation hook

I have a plugin. And the following code: function activate_my_plugin(){ // my_option value here: 1 update_option('my_option',0,true); // I've tried with and without last parameter // ...
dgo's user avatar
  • 125
0 votes
1 answer
174 views

Get access to all terms associated to each post that the wp_query loop displays

If the following loop logic gives me access to post properties that are associated to a CPT (for example, 'sports')... $args = array( 'post_type' => 'sports', 'posts_per_page' =&...
klewis's user avatar
  • 857
0 votes
1 answer
582 views

WordPress REST API response is empty in browser and script, but not in Postman

I'm trying to do a super simple fetch to grab some user data for my WP site. This URL works 100% in Postman and I get everything I need. However, in the browser and script, the response is ALWAYS an ...
lz430's user avatar
  • 113
0 votes
0 answers
17 views

Comment turned Invisible

Please help me with this problem. People can comment, and the database shows the commented data. but the website is not displaying them. They are just showing blank space. (Just the username of the ...
Shahi John's user avatar
0 votes
2 answers
95 views

Pullquote Block Styles disappeared?

Did the Pullquote block styles disappear in the editor? There used to be a Styles section in the sidebar panel with the "Default" and "Solid Color" options, as it is written in the ...
Marc's user avatar
  • 357
0 votes
1 answer
79 views

Check if plugin is being disabled

I have created a wordpress plugin. But when i disable the plugin i must delete a certain file before a user can reactivate the plugin. Is there a function or a way to know when someone disables my ...
Lennard K's user avatar
0 votes
1 answer
117 views

Pre_get_post on CPT archive page

i would change the main query on a CPT archive page the CPT is declare as "events", the name of the archive page I use is called 'archive-events.php" and this simple code won't work. ...
nico's user avatar
  • 25
0 votes
1 answer
625 views

Is there a way to append a trailing slash to get_home_url() and get_permalink( get_option( 'page_for_posts' ) )?

Both get_home_url() and get_permalink( get_option( 'page_for_posts' ) ) don't append a trailing slash at the end. Is there a way to append it similar to home_url( '/' ) other than get_home_url() . '/'?...
Motivated's user avatar
  • 205
0 votes
1 answer
20 views

Incorrect taxonomy ID assigned to post with custom query

I'm having a strange issue where the output of the following query isn't always correct. <?php // Get all the categories $categories = get_terms( 'soort-event', array( 'include' => array( 36,37,...
NielsPilon's user avatar

15 30 50 per page
1
90 91
92
93 94
2316