All Questions

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

Why does WordPress want a 512×512 pixel site icon

I get that a site icon needs to be square, but I don't know why it needs to be as large as 512×512 or larger. Can anyone advise why is this, and/or where that image would be used at a resolution ...
1
vote
1answer
626 views

Different Featured Images depending on context: loop or single view

I want to keep different image on the single post type page and a different image if the post type is showing in a loop. Is there any way? Perhaps we can use the gallery image as featured on single ...
1
vote
1answer
15 views

Make `previous_post_link()` Function Show The Post After Next i.e. Jump A Post

Is it possible when using the previous_post_link() function to make it get the previous post after next i.e. make it skip a post. So if you're on post 5 in numerical order it skips to post 3? The ...
0
votes
0answers
8 views

Weird query with get_posts and WP_Query

Attempting to make a search in a custom post type "comunicados" inside a shortcode in a custom plugin I send this to get_posts() Array ( [posts_per_page] => -1 [post_type] => ...
0
votes
0answers
7 views

Navwalker not applying the custom css classes on menus

I'm using the Bulma Framework and wanting to implement a mega menu onto my WordPress site, but I can't seem to figure out how to adjust my Bulma navwalker so that it can accept custom css classes that ...
0
votes
2answers
1k views

How to properly enable comments form in page template

I've applied the following code to enable the comment section in the page template. <div class="col-md-12"> <?php while ( have_posts() ) : the_post(); ?> ...
0
votes
1answer
706 views

wordpress get_the_post_thumbnail can't set size

I have wordpress with multisite, so it will be pc and mobile version. On my pc version, i can use wp_get_attachment_image_src(get_post_thumbnail_id($id), array('210','210')) But on my mobile version, ...
0
votes
1answer
26 views

How to display the categories on page using shortcode?

I am trying to display the categories name on my page but it's not displaying. I am using the below code and I added the shortcode gridCategories on my page. I am getting only array function ...
0
votes
0answers
10 views

How do I trigger the sidebar reveal for my sidebar plugin in the Gutenberg editor?

So I have developed a sidebar for the Gutenberg editor in WordPress. The purpose of this sidebar is to provide feedback, grades, scores, etc., for a set of custom input boxes that appear below the ...
0
votes
3answers
1k views

Custom registration fields not validating

Hi I have created two custom fields - both of them should be required, but when I fill out username and correct email, the error messages are skipped and user gets registered. If there is an error in ...
0
votes
0answers
25 views
+50

Display User ID instead of Name or Username

I have BuddyPress installed in my WordPress. I don’t want to display the name or username in the profile of member, instead just User ID, like below Avatar instead of member’s name it will just show ...
0
votes
1answer
29 views

What is the largest value you can store in a custom field (as meta data for a post)?

What is the largest value you can store in a custom field (in the meta data value for a post type)?
0
votes
1answer
1k views

wp_handle_upload specified file failed upload test

The code I am using is practically the same as the codex. The $u and $m return true. Just the $error gives "specified file failed upload test". Thanks for any help you can give. FORM: PHP if ($...
0
votes
2answers
2k views

create submenu page - error function not found or invalid function name

I have created a plugin with a top level page. I created a sub menu underneath that. When I run the plugin on my site everything works. But when I test it on a separate site I get an error and I'm not ...
0
votes
1answer
11 views

Timber + MtHaml, or any other HAML-like HTML shorthand

I use Timber for all my projects, but I would also like to start using a templating language like HAML or Pug. I found a PHP implementation of HAML called MtHaml, which supports twig. I thought this ...
0
votes
0answers
8 views

Can't display multiple terms with get_the_terms

I am trying to display the terms (from a custom taxonomy) of a single post, but I can't display more than one term. When I try to display all the terms using a foreach loop, it doesn't display ...
8
votes
2answers
14k views

How to load scripts/styles specific for a page

I know that according default Wordpress boot process, firstly functions.php is called, after that goes all theme stuff. But I am currently going to refactor my theme completely to optimize it. My ...
3
votes
3answers
828 views

Unable to get wp_redirect() working after adding a CPT via the front end

I am attempting to learn PHP by creating a relatively simple application built on wordpress, it is a basic CRM and I've made decent progress but have been stuck on some of the finer points. I've been ...
0
votes
0answers
16 views

Cant list custom type posts based on category

Hi, I want to list posts which belong to custom type "news" under a certain category. This is my code: <?php $news = get_posts( array( 'post_type' => 'news', 'category' =&...
0
votes
1answer
15 views
+50

Position image widget in mega menu

I need to add image in mega menu. So I have added image widget in menu. How can I reposition this widget. Currently my menu is showing like this. But I need image only in the right side, and sub ...
0
votes
1answer
8 views

Removing a widget via theme editor

I recently updated our company's website and now we are seeing our newsletter sign-up widget appearing on landing pages where it previously had not. Our landing page template is set up to remove this ...
0
votes
0answers
4 views

Can I have Woocommerce Shipping Restrictions by State?

I have a client's website which I have the set the default shipping restriction to a particular country. I want to be able to also restrict shipping by states within the country. For example, if ...
0
votes
2answers
369 views

Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard

The subsite administrators of my multisite installation want to go directly to the subsite home page upon login, bypassing the dashboard. Irrespective of the wisdom of this, it's what they clearly ...
0
votes
1answer
796 views

Updating Custom WordPress User Meta Field via REST API

I have created an empty user meta field for a user called phone_number via the add_user_meta() function. When I use the get_user_meta function, I can see an empty string for the meta field which is ...
0
votes
0answers
6 views

Elementor adding unwanted divs on text editor widget

Good Day everyone! I have a problem with elementor's text editor widget as it automatically generates unwanted div codes. For example this one: That code is being automatically added by elementor text ...
0
votes
0answers
17 views

WordPress Multisite: Redirects users after login to the site's admin dashboard they belong to

I want to let the users log in through the main site(www.example.com/wp-admin), Once the user successfully logged In, I want to redirect them to the site admin(ie: www.example1.com/wp-admin/index.php)...
0
votes
0answers
7 views

event listener on Form submit not working [closed]

on the following website, which is mine, http://enzo.iotschool.eu/Mixologiststeps/contact-a-mixologist/ there is a form. I am trying to place an event listener on the submit event to log something but ...
1
vote
0answers
9 views

How to authenticate via API to allow writes/updates

I've been working with the Wordpress REST API Authentication plugin (from miniOrange) as part of an article I'm writing. I want to demonstrate how to integrate a third-party application with a WP site ...
2
votes
1answer
903 views

Echoing Elementor page content in template, but it doesn't get styles and some widgets are missing

I built a page with Elementor, and I want to use it as my home page. When I use a static home page with my theme, it still gets wrapped with the header, footer, and content container, which I don't ...
0
votes
0answers
9 views

WordPress Gutenberg How to make TextControl Required?

I want to make this field required. Can anyone suggest how to do it? <TextControl tagName="p" label="url" placeholder="http://" focus = {focus} className="full-...
0
votes
1answer
2k views

Wait ajax to complete before continue loop

I'm developing a code that searches for about 5000 orphaned users, and delete them. Using Ajax, how do I wait for a response to complete and then continue the loop? Currently, the loop will keep ...
1
vote
1answer
15 views

Will revisions be retained when converting to a multi-site?

Will revisions be retained when converting to a multi-site? We’re looking to convert a WordPress site to a multi-site, and the client we’re working with is very conscious that they don’t want to lose ...
0
votes
2answers
17 views

Live to Local on MAMP, not working, outputting functions.php code

This is an older custom theme. On the live server, I updated to the latest version of WP, updated all plug-ins including ACF. Downloaded all files, DB, and renamed to local URL. I've done this many ...
0
votes
1answer
16 views

Submitting form to PHP

I am submitting a form to PHP edit post metadata. The logic I built is having multiple "ifisset" to execute different parts of the requirements based on the inputs. There are 4 issets, the ...
0
votes
1answer
630 views

How to get the last term from taxonomy?

working on a scholar journal in which publisher add issues to the "issue" taxonomy assigned with articles. i need to display outside the loop a list of posts assigned only with the last issue (...
2
votes
1answer
19 views

What CSS rules are introduced to core blocks through wp-block-styles?

The Gutenberg Handbook mentions that some CSS for WordPress core blocks are applied to the front-end and within the editor by default (and that they cannot be disabled) but there are more opinionated ...
0
votes
0answers
6 views

Download all images from one single post

I used toolset custom fields and custom post types to create a post type with an image field that can have multiple images uploaded to a post. Is there a way to generate a "download all images&...
0
votes
0answers
8 views

How can i put my menu to the bottom aligned with logo ( bottom of logo) or in center (center vertical) in center of logo

How can i put my menu to the bottom aligned with logo ( bottom of logo) or in center (center vertical) in center of logo. Theme OceanWP
3
votes
2answers
2k views

Widgets panel not displaying in the Theme Customizer

I am using the Theme Customizer to let users customize how their website looks. I noticed on the Twenty Fifteen theme there is a panel for Widgets. I have seen this on quite a few other themes too, ...
0
votes
0answers
6 views

In which table does woocommerce store purchase orders

In which table does woocommerce 4.3.1 store purchase orders
0
votes
0answers
7 views

Is it possible to set Featured Image using HTML?

The Amazon affiliate program does not let you download images from their site and upload it via their server. One authorized way of using images from Amazon is to use their API or Sitestripe. For new ...
1
vote
2answers
20 views

mysqli_error() expects parameter 1 to be mysqli, null given in own db class

I created a plugin and defined a shortcode there. This includes my own PHP scripts (pages). The data are in a second database. The direct mysql query works fine (testcode), but the db.class create a ...
0
votes
0answers
8 views

Custom Dynamic Tag - Product Variation Images

I am building a website for a Tile company, within which a Tile (Product) will have multiple Variations (Tile Colour/Texture). I want to display the Variation images in a gallery on the Product page, ...
0
votes
1answer
17 views

Send a conditional email notification when a custom field value changes in Post Type

I have added a custom field "Registered"(field type = checkbox) through ACF on Post Type. When I change the value of the custom post field "Registered" with a check, I want to send ...
1
vote
1answer
20 views

Uppercase first sentence in every post

Brand new to this community but been tinkering with WordPress for years. I would like to edit my website's functions.php file to be able to automatically do a task I have to do manually each day. ...
0
votes
0answers
13 views

Get category base permalink

i need to place category base permalink in my theme like this <?php if ( is_category('in-theaters') ) { ?> <li class="active"><a href="<?php echo esc_url( home_url() );...
2
votes
3answers
7k views

Redirect too many times htacces switching to https

When I change the redirect https in my .htaccess the site returns the message "Too many redirects" loop. This is the modified .htaccess RewriteCond %{HTTPS} off RewriteRule (.*)$ https://www....
0
votes
0answers
22 views

Can't extend my custom gutenberg block

I have been trying to extend some custom blocks I coded along with core blocks to support custom CSS. This is how tried to extend the block attributes const {assign} = lodash; const {__} = wp.i18n; ...
0
votes
2answers
28 views

Can't login to my own website

I've had a Wordpress site since March 2016 but a few years ago I lost the ability to log into my own website. I'm using the "2016" theme so there's a little panel at the bottom of the screen ...
0
votes
0answers
9 views

How to change the menu icon of a custom post type created using pods framework?

I have created a series of customs post types using pods framework, now I would like to change the default icon that is assigned in the menu Right now this is what I get, but I would like to assign a ...

15 30 50 per page
1
2 3 4 5
2103