All Questions

0
votes
0answers
7 views

Assign a meta value to an email address that hasn't been registered

I'm trying to allow users to invite other users on a Wordpress site by email. I want to update the invited users with a meta value that is assigned to them when/if they registered. The value would be ...
0
votes
0answers
10 views

WordPress post_status and meta_query

I created a custom post status and I would like to set auto-change (clients are filling two dates, precomming and ongoing). How can I do auto-post-status change when it is after precomming or ongoing ...
0
votes
1answer
13 views

Counting number of posts with Category B in Category A

I'm currently building my own backlog tracker and have gotten to a point where I just have no idea how I'm going to do this. I have multiple status categories (for example; beaten and completed) and ...
0
votes
0answers
13 views

Foreach loop through Gravity Forms entries

So, I'm trying to iterate through a foreach loop of all the entries to a gravity forms form. I have it sort of working in a template, but I need to put it in a class (creating a calendar and need to ...
0
votes
0answers
9 views

How can I measure CPU and RAM used by my theme or plugin

I have produced a few plugins for WordPress, but other than generating errors, I don´t have a way to tell if my plugin is doing things right. How can I tell the ammount of CPU time and RAM my ...
0
votes
0answers
10 views

Adding Mailchimp subscribe into custom theme

I am creating custom theme and we would to add Mailchimp subscribe form. This is somewhat easy with Mailchimp for Wordpress plugin, but this plugin creates forms with certain ID and there is no ...
0
votes
1answer
12 views

Public WP website with one area just for members

I want to create public WordPress website (for a sports club), but with one closed area just for the members. The public part of the site will have the usual pages: club info, photo gallery, contact ...
1
vote
1answer
6 views

Media Gallery Upload Thumbnail Compression is Changing Image Hue

When I upload an image to my media gallery, all the image sizes that are generated are discolored. Here's an example. This is the full-size image: And now here is one of the smaller image sizes: ...
0
votes
0answers
14 views

Hide children of one specific category from the category-list on post

I'm sorry for that question for which the answer is probably obvious... I don't know javascript, and usually i manage to kind of understand the codes i find here and to mix them, but this time I have ...
0
votes
1answer
14 views

Block a specific url request

I probably have a plugin that makes a request to an URL slowly down my website. At the moment I'm still debugging the issue but, in the meantime, is there a way to prevent Wordpress to request this ...
2
votes
1answer
15 views

Fatal error: require(): Failed opening required 'WP_DIRwp-blog-header.php'

I am a game developer, not very familiar with web programming. I am trying to tie my website point system, MyCred, into my games. Mycred has code snippets for interacting with the points from another ...
1
vote
1answer
15 views

My plugin wants to update another plugin

I am having issues when I view my installed plugin page, it's telling me there is a new version available. If I click the view version or view details links, it shows a completely different plugin ...
1
vote
1answer
33 views

How do I search WordPress by different fields without a plugin?

I'm building my own WordPress theme, and I would like for my search queries to search posts by keywords in the title, categories, tags, and content. As of now, I believe that my theme is only ...
0
votes
1answer
11 views

Calling JavaScript by plugin vs wp_enqueue_script() [on hold]

I have been reading various articles about how to properly call JS files in WordPress. All seem to say that using wp_enqueue_script() is a best practice, but that using a plugin, such as headers and ...
-1
votes
1answer
14 views

How do I find a shortcode stored in wordpress?

I need to find a shortcode - [shortcodename] - in WordPress. How do I do that? There doesn't seem to be a search option, which seems a bit ridiculous for a editing tool. Thank you.
0
votes
1answer
11 views

Add table controls with wp_editor minimal editor configuration ('teeny')

I want to add the table controls for wp_editor(tinymce) initiated with teeny=>true. Here is what I have done so far (without success): <?php $tinymce_options = array('plugins' => "table", '...
0
votes
1answer
17 views

Where to upload JavaScript file in WordPress

I am using the headers and footers plugin to call a small script I made by pasting the script directly into the user interface of the plugin. However, I would like to upload a JS file and call that ...
0
votes
0answers
6 views

What can make a 404 timed redirect? [on hold]

Some of the older posts on my page will, after a time, redirect to a 404 page. If the page is refreshed, you're brought back to the original page (no 404) How can I find what is causing this and ...
0
votes
0answers
16 views

Appending „read more” to the excerpt conditionally

I wonder if anyone knows how to add an if to this function. I need the read more to only be added to the the_excerpt when the category is 429 function mywiki_trim_excerpt($mywiki_text) { $text = ...
1
vote
0answers
14 views

Wordpress custom post type permalink rewrite shows page not found

I need to have 3 custom post types in my wordpress site, each one being a parent of another. Courses > Series > Episodes I have fully created a functions file that registers the custom post types ...
4
votes
1answer
32 views

Blocks: set a default value for a TextControl

I'm creating a block similar to the WP Core Table block, which first presents the user with a form to set the number of rows and columns. I'd like to set a default value in the TextControl for the ...
0
votes
0answers
2 views

301 .htaccess wordpress sub-level [migrated]

I am trying to redirect third and fourth level links to second level. /page/subpage/subpage should go to domain.de/newpage/ /page/subpage/ should also go to domain.de/newpage/ I tried it with this ...
0
votes
0answers
7 views

How to change form field errors for ninja forms

Currently after the form submission without entering the required fields gives me an error saying This value is required. Now I want to change it for example Full name is required. On the ninja forms ...
0
votes
0answers
6 views

TinyMCE Editor as component in Gutenberg Block

I'm trying to set up a custom block that uses a TinyMCE as the text editable component, rather than using RichEditor. I can't find anything that really details how to go about this and need pointing ...
0
votes
0answers
8 views

JSON Schema Output Object rather than Array

I've set up a custom post and added various custom fields using Advanced Custom Fields. The data can be viewed here: khclassics-co-uk.stackstaging.com/wp-json/wp/v2/classic_car However, when I ...
-1
votes
0answers
5 views

How can I custom edit the Owl Carousel plugin? [migrated]

I'm using the Understrap theme and installed the Owl Carousel plugin. I've loaded all my images but the plugin does not allow me to add text to display over the images. The plugin only gives you a ...
0
votes
0answers
17 views

How to sort members list by xprofile value?

if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : do_action( 'bp_before_directory_members_list' ); while ( bp_members() ) : bp_the_member(); // the loop content goes ...
0
votes
1answer
20 views

How to display the_archive_title() and the_archive_description() - “weird” interaction

I've got the following code in my "pagetitle" template partial: <?php the_archive_title( '<h1>', '</h1>' ); the_archive_description( '<span class="archive-description">', '</...
0
votes
0answers
19 views

Translate wordpress without duplicate custom post

As I can't find a proper way to do this, I'll just drop this here : I run a website where anyone can post offers from fontend. I want the website to be multi language with switcher and/or browser ...
-1
votes
1answer
15 views

How to reduce the server response time? [on hold]

I am facing so much problem because of the server response time. As per I know the server response time must be below 0.3 but my website has 7. Can anybody help me with this?
-1
votes
0answers
12 views

Remove Article Schema Yoast

Can you tell me how to delete the article schema? This scheme is not relevant to my site. This is what I meant (screenshot):
0
votes
2answers
18 views

Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure font '<URL>'

I migrated my Wordpress site to HTTPS, everything works but I've theses errors. In my CSS, I import fonts and I tried to put theses URLs with HTTPS but it changes nothing. I verified and my link to ...
0
votes
1answer
9 views

List non-empty categories from a custom post type

I have a Custom Post Type that uses the default category, the same as the posts, and some other post types in my site. How can I list all non-empty categories from the custom post type? For instance, ...
0
votes
0answers
11 views

Multiple archive product exist

I use woocommerce for my e-shop. I don't have that much product at the moment so the pagination on product archive isn't showing up. My archive product page is located on domain.com/product, but ...
-1
votes
0answers
10 views

Sale products with branches in diffrent cities with woocommerce [on hold]

i am Creating a website of drinks and thandai , like when user order particular drink on my website and fill the checkout field ...where he select city and area under that city ... then that orders ...
-2
votes
0answers
13 views

Woocommerce prescriptive and non-prescriptive products. Add staff menmber as woocommerce user [on hold]

Woocommerce Website : The Pharmacy Website is intended to be a presentation site, and online store with prescription ability, for the use of medical practitioners. The site needs to function as an ...
0
votes
1answer
19 views

Use of undefined constant THEME_PATH [on hold]

How can I fix this error? Got error 'PHP message: PHP Warning: Use of undefined constant THEME_PATH - assumed 'THEME_PATH' (this will throw an Error in a future version of PHP)
2
votes
1answer
20 views

How to display recent / random posts by its category

trying to display random posts from each category that my custom post belongs to (it is related to 2 categories). I am trying to get post categories by id. I have tried to put category ID manually but ...
0
votes
1answer
21 views

How do I render content from a wp_editor in a plugin setting field?

I have a plugin setting that uses wp_editor() to handle the input and will get echoed as part of a shortcode. Everything is working great on the admin side but when I echo the output on the client ...
0
votes
0answers
20 views

Remove divs and spans from post content

I have the below code cobbled together. I've got it saved in a standalone PHP file so I can just run it on demand. It should be pretty clear what it's meant to do: loop over all posts of type '...
-1
votes
1answer
13 views

Is it possible to print only array keys using loop in php? [on hold]

Is it possible to print array keys using a loop? Then I want to put then inside the input type. $cr_table_array_new = array( 'Name' => array('text'=> array('Enter Name')), 'Email'=> array('...
2
votes
1answer
76 views

Output the slug and name of a CPT single post taxonomy term

When I'm on a single post for a custom post type, I want to be able to grab the slug and name of the taxonomy term so I can insert them into a link. Below is what I've tried but it doesn't seem to ...
0
votes
0answers
11 views

Session Experies and Get Logged Out Within Few Minutes

I have wordpress simple blog with few plugins installed. My problem is that after logging and working for few minutes (hardly 2-5 minutes), session expires and I get logged out of the admin area. ...
0
votes
1answer
11 views

Hide duplicate entry title

I am using Divi, which introduces the Post / Page title as "h1.entry-title." And, I'm also using Open Menu plugin, which also introduces their custom post type Page title as "h1.entry-title." So, I ...
1
vote
2answers
14 views

Error establishing a database connection; After importing DB & Theme

I'm doing some work on a client's wordpress so to not touch the live I imported what I thought I needed from their FTP into my xampp to reproduce their environment. Their website is hosted on bluehost,...
0
votes
0answers
8 views

Customizer: Upload and unzip zip file in specific folder

I'm trying to upload a zip file in the Customizer that will unzip itself and contents be placed in a specific folder. So far, I have the following control in the Customizer: $wp_customize->...
0
votes
1answer
9 views

How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?

Using the wordpress gallery below, I want to show the html content of an anchor tag so that when I click on a link to get to a specific gallery I will navigate to the anchor tag in the description ...
1
vote
1answer
20 views

Create thumbnail size only for a few images?

I have a few posts that require their thumbnail sizes to be 1000x430. If I register this size and regenerate the thumbnails, it will create this size for all images in the media folder, if I'm not ...
0
votes
1answer
17 views

Best practices/popular methods for distributing a program with a plugin?

Are there any best practice guidelines regarding how a plugin should distribute a third-party program with it's own installation? If there are no guidelines, then what are the most popular methods? ...
0
votes
1answer
10 views

How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug

I'm setting up "special" url structure for posts etc Result i want to get is: sitename.com/club/justcavali club is term from taxonomy (club_type) and justcavali is post type (booking_type) after i ...

15 30 50 per page