All Questions

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

Collect customer billing info on product page

I'm looking for a way to add the following billing fields as product options in WooCommerce to pass along to the checkout page. billing_email billing_first_name billing_last_name billing_phone ...
0
votes
1answer
5 views

which plugin is this?

i want to know which plugin is this or similar types of plugin https://www.variyoshop.com/product/free-fire-diamond-direct-from-player-id-top-up/
0
votes
1answer
7 views

WooCommerce which roles and capabilities control user login re-direct to Woo Account Page?

WooCommerce has a special "account page" that customers get re-directed to instead of the WordPress admin backend. I'm trying to create a custom role that does NOT go to that page. When I clone "...
2
votes
1answer
11 views

How does WordPress redirect without using .htaccess?

As explained here, WordPress has Automatic URL Redirects. However, it's not based on .htaccess which WordPress keeps to a minimum. Let's say your "siteurl" setting (in the GUI) contains "www.". If a ...
0
votes
0answers
8 views

Extending a Plugin, Having Some Trouble with an Array & Foreach

At the core, I feel like I'm missing something very simple. I have a variable set using another plugin's function. This variable needs to set data inside of an array, like so: $...
0
votes
0answers
13 views

Is there a built-in function to generate multiple paragraph tags based on a string with new line separators?

Consider the following code <?php // The new line separated string $section_string = <<<EOL Sentence A1. Sentence A2. Sentence A3. Sentence B1. Sentence B2. Sentence B3. Sentence C1. ...
0
votes
0answers
10 views

Selecting An image from Media LIbrary in a custom page

I'm using Wordpress to create a research tool where archival documents are transcribed into a relational database. Part of this is a transcription interface, a custom page. What I'm trying to do (...
1
vote
0answers
16 views

Unset actions for terms parent only

I'm trying to unseting actions for Parent terms only but unsetting the action "view" doesn't work. Terms is always clickable. Here is what i'm trying to do : add_filter( 'tag_row_actions', '...
0
votes
1answer
13 views

Can we use a library under MIT license in a WooCommerce plugin?

I am in the process of developing a WooCommerce Plugin, and I plan to make two Free and premium versions. I want to join The Bootsrap library which is under the MIT lisence. In the WordPress officle ...
-1
votes
0answers
11 views

How to display error on attribute buttons if not selected as a red outline on them?

I am working on a woo-commerce theme. On the product page when user doesn't select any attribute and tries to add product to the cart, it shows error on the alert box like this I want to make red ...
0
votes
0answers
13 views

Admin search for custom post type shows results for everything but my post type

I've added a custom post type with this: <?php if ( ! function_exists('ordinances') ) { function ordinances() { $args = array( 'label' => __( 'Ordinance',...
0
votes
0answers
9 views

Cannot access wp-admin after migration to another place

I've been working in my blog. Yesterday I made all back-ups (files and DB), i´ve changed the wp-config.php with the new user, DB name and password and I publised everything at my actual URL. http://...
0
votes
0answers
15 views

How to force a page to use the theme options/template even though it is related to a plugin?

I have a Zakra theme which allow me to choose a compact view without sidebar on a page. It works fine unless the page is somehow linked to a plugin or wordpress (the blog page for example as it is set ...
0
votes
1answer
16 views

Issue with custom loop in Archive page

I customized my loop in archive.php to display 8 posts per page. However I have an issue passing the args: the loop displays all my posts from all my categories. Here is my PHP code for the loop: &...
0
votes
0answers
14 views

Update WooCommerce stock status with SQL query if stock value is greater than 0

I'm attempting to update a large product catalogue using a SQL query via phpMyAdmin if: the _stock_status = onbackorder the _stock > 0 Queries attempted: Update wp_postmeta Set meta_value = '...
0
votes
0answers
9 views

Theme Development | WC_Product_Query | WooCommerce | Help me create a working custom product query! [closed]

I am having difficulty creating my own custom WooCommerce product loop. Along the way I have encountered a few questions that would be really helpful if they could be answered. I am currently ...
0
votes
0answers
16 views

Updatable theme developing

I made a wordpress theme and I want to sell it and support the theme for a time so I need update the theme.However I dont know how to do it? Also I wonder if I make new version as full theme, Will ...
0
votes
0answers
12 views

Adding Preloader & Loading Effect

I want to add preloader and loading effect to my website exactly like the one used in masoudrostami[dot]com... Is there any plugin for this or I have to use Javascript and Coding?
0
votes
0answers
8 views

Wordpress multisite share media across sites without a plugin?

I have googled this for couple times and went over all links, all I could find is plugin solution. I am using multsite for manual translation, however all images that are used are same. I want to ...
0
votes
0answers
7 views

Centralise convertkit forms? [closed]

I can't seem to centralise the convertkit form in my theme (Daze) however this doesn't work via CSS. Can anyone advise what to do here?
0
votes
0answers
14 views

How to update a row in a table in Wordpress

I have a table of data rows. Now I want to click on the Update button then that row of data will be Updated based on the ID Here is my demo: These are my commands: <?php foreach ($...
0
votes
0answers
19 views

Ordering by ACF custom field vaule

I'm using ACF field for post ordering. Now I have positions for 1-5 for post display, so you can select on which position post should appear. Only thing that I can't achieve right now for example is ...
0
votes
0answers
10 views

Static Page “Last Post” display all post

I've got a very hard issue with a blog (a two years setup) in 4.8.12 (many plugin was install and uninstall...) My static page display all post; I have correctly setup settings - reading with 10 ...
0
votes
1answer
13 views

How do we update a custom file upload field with the Advanced Custom Field plugin?

... $filename = mt_rand( 100,999 ) . '.pdf'; $post_id = wp_insert_post( $post_data ); if ( $post_id ) { $pdf_field = get_field_object( $fields['pdf'], $post_id, false, true ); $fields = ...
0
votes
1answer
24 views

Menu links URL with PHP GET method

Hello the community, I would like to know if is it possible to generate menu links using the PHP Get Method instead of the regural one used in Wordpress? e.g : www.mybeautifulwebsite.com/category/...
0
votes
0answers
13 views

Having issue in feature image upload from frontend. We used “Wp User Frontend Pro” Plugin

In frontend side. feature image can not upload. Its showing error like this: Showing error like: Please provide solution.
0
votes
1answer
13 views

I'd like to be able to programatically setup a site to discourage crawling by search engines

I'd like to believe this would be in wp_options, but I can't find the right field.
0
votes
0answers
11 views

Wordpress - WPBakery - Near Footer jump issue

I have a wordpress site @ https://www.oxygenband.com/ and got a page jumping issue @ https://www.oxygenband.com/wedding-music-band-in-chennai/ When you scroll to the bottom of the page above footer, ...
0
votes
0answers
8 views

Adding dropdown to the page

I have data for different subjects. Let’s assume Subject 1 and Subject 2. I’m trying to have a dropdown on WordPress page, when user selects Subject 1 from dropdown, I want to display a graph using ...
0
votes
2answers
18 views

When using the_author hook, how can I determine the PHP file that generates each call to `the_author()`?

the_author() filter hook can be used to modify the output of the_author(). When using the hook, is it possible to know which PHP file generates which call to the_author()? For example, say I have ...
0
votes
0answers
8 views

Page level publishing from staging to productionserver

I'm trying to find a solution where it is easy to publish an individual page on our staging server to our live production server. Currently using SiteOrigin, the process is downloading each of the ...
0
votes
0answers
5 views

Remove and replace TinyMCE from edit screen

I need to remove the tinymce editor from the edit page of a certain custom post type to replace it with a custom leaflet map. I'm using a snippet I've found on this site, but it will not work, I get ...
0
votes
0answers
18 views

how to add div with content after wpcf7mailsent

i try to add my own sucess message after sending contact form with contactform 7. I use the following code: document.body.onload = addElement; document.addEventListener( 'wpcf7mailsent', function( ...
0
votes
1answer
6 views

WooCommerce WC_Admin_Report CSV Export Not Firing

WC_Admin_Report has a method to allow the Export CSV button to appear within the custom report as so... public function get_export_button() { $current_range = ! empty( $_GET['range'] ) ? ...
0
votes
1answer
10 views

Ascending numerical sorting with non-numerical characters last

I would like to return search results in ascending order according to their numerical 'start date' value (e.g. 1970, 1971 etc.). However, some results do not have a value for this field and instead ...
1
vote
1answer
24 views

Gutenberg – How to prevent block from being deleted and reordered/moved

I have a post type which is prepopulated with a Gutenberg block: function blog_block_template() { $post_type_event = get_post_type_object( 'event' ); $post_type_event->template = array( ...
0
votes
1answer
13 views

How to include a JSON file on my page?

I have a JSON file stored in my child theme directory: file.json). Separately, the PHP template for my page contains some JavaScript code (in the form of a <script> tag). In that JS code, I ...
0
votes
1answer
21 views

category/category_name pagination 404 error

<div class="row"> <?php $currCat = get_category(get_query_var('cat')); $cat_name = $currCat->name; $cat_id = get_cat_ID( $cat_name ); $paged = (get_query_var('paged')) ...
1
vote
0answers
18 views

Add custom links like functionality

I want same functionality like WordPress provide for custom links but additionally I want to add some class to those links by default that is added by this feature (Other websites). I have tried to ...
0
votes
0answers
21 views

Custom meta box is not displaying value showing tag as empty

I have a created a custom meta box plugin and a function in the functions.php file to output the value on the page. The meta box seems to be working, however the input text is not being displayed on ...
0
votes
0answers
22 views

Remove pre and code tags from WordPress

WordPress has added both <pre> and <code> tags to my PHP embedded in a post. Here's an example <pre><code>register_taxonomy( 'Books', 'post', array( 'label' =&gt; __(...
0
votes
3answers
28 views

Enqueue custom css file on specific page

So I've been messing with this for a while now and I don't understand how I'm unable to pull in my style file properly by registering and calling it at all. Here is my method: public static function ...
0
votes
4answers
22 views

Custom Taxonomy Not Showing in Front-End When Outputting a Custom Post Type with WP_Query()

I have a custom post type that I'm importing into the front page of the site with WP_Query(), but I can't seem to get the custom taxonomy to show. I've placed a div in the HTML and inside this I'm ...
0
votes
0answers
13 views

Close video stick - Single Post

I'm trying to fix this problem that I have with this sticky video but I can't seem to find a solution. I have video's on my page. I want the sticky video to leave the view after clicking the X. The ...
0
votes
1answer
10 views

Use WP_Query() to Output the 4th to 6th Most Recent Posts of a Custom Post Type

I have a front page of a site that consists of different custom post types. To achieve this I've been using the WP_Query(); function. In the example below, the query is used in a section and ...
0
votes
1answer
22 views

Is it safe and good practice to use do_shortcode to escape?

We're using Advanced Custom Fields in our company and sometimes we need to use shortcode in our custom fields. In the php code we then use the do_shortcode functions for these fields. There is no ...
0
votes
0answers
10 views

Translating a string (Russian)

I am trying to translate the following string (using po). All %%category%% %%in_location_single%% It translates just fine except that it doesn't account for a few singular feminines. in majority of ...
0
votes
0answers
27 views

How to automatically convert “normal” conditions to yoda conditions

I am working on a large WordPress Plugin. It has already more than 10'000 lines of code (PHP + Javascript) and must be changed to yoda conditions, for matching the coding standards of WordPress. Is ...
0
votes
1answer
17 views

Interrupting $html.= ' for IF statement

Hi Stack Exchange Community, I'm looking to understand how to insert an IF statement inside the code below: $html.= '<span class="cat">In <a href="'. $typeLink . '">' . $terms_string . '&...
0
votes
0answers
15 views

How to bulk remove line breaks that are not made with <br> tag?

We moved a bunch of blog posts over from one old drupal site into WP. They have a lot of odd line breaks in them but I cannot find or nbsp in the html. It's like someone hit return a bunch in the ...

15 30 50 per page