All Questions

0
votes
0answers
3 views

Topic won't save for a custom post type — how to debug?

In two of my custom post types, the topic (in the Topics meta box) won't save. This is not a custom meta box, but the standard Topics meta box. At least, I think it comes standard with WordPress, ...
2
votes
2answers
153 views

How to replace any occurence of Gravatars with a local placeholder image?

Users can upload an avatar as a local image file on my website. If they didn't do so, it will fall back to the WordPress default (Gravatar). But I want any occurrence of Gravatar to be replaced with a ...
0
votes
1answer
486 views

add offset to archive page

Hi how can i add offset into archive page loop? <?php if (have_posts()) : while(have_posts()) : the_post();?> <a href="<?php the_permalink(); ?>" ><?php the_title(); ?></a&...
0
votes
0answers
2 views

Adding existing user custom field value to a woocommerce product

I am assigning each product in WooCommerce to an author. Each author, when they sign up, adds in a short bio and this is saved with the author's user account. People are signing up with Profile Press. ...
0
votes
1answer
5 views

Sub Menus will not work

I am desperately needing help. I have done everything to my knowledge to try to get my sub menus back on my website. I installed a meta slider plugin to get a slider on my homepage. It worked well and ...
1
vote
1answer
470 views

Plugin settings page checkbox not saving - one options array with sub array

I'm driving myself crazy here trying to get a checkbox to save on a plugin settings page. Right now, as a template, I'm working through the excellent example given here: Settings API with arrays ...
0
votes
1answer
9 views

Access first name and last name from user_register

does anyone know how to grab first_name and last_name from $user_id for passing into a function firing on the hook user_register? I am having no luck with either: function random_name ($user_id){ ...
0
votes
0answers
8 views

PHP Category Filter

I am very very (very) new to all of this and have a project in seminar I'm doing. Now, the task is to add lines of code to .php file to create one more filter field to this site - https://www....
0
votes
0answers
6 views

Plugin to put the whole checkout on a single page

I need a plugin that makes the checkout page stay on the same page, divided the information into columns, as in the image below Thanks for your help right away.
0
votes
1answer
471 views

the_category if/else statement

I need to do the following: The sense if I have a class dportfolio - show a category dportfolio. Otherwise show usual category. I use: if ( class_exists( 'DPortfolio' ) ) { echo DPortfolio::...
0
votes
0answers
17 views

Blog images not showing on homepage

Forgive me as I am new to this. The Blog is a separate page while the menu has 'news'. The pages are set in the screenshot but still doesn't show the blog images in the news section of the home page. ...
0
votes
3answers
32 views

My blog was hacked? WP posting random posts

I have been searching at this site posts about blogs being hacker, but I haven't find something like this. One of our Editor's account has started to publish random posts. Our first thought was his ...
0
votes
1answer
9 views

Get system timestamp in wordpress

My system timezone is UTC+1, MySQL is using this timezone and it's ok. Now I want to get the same timestamps in WordPress. As you know, WordPress modifies the current timezone so time() returns UTC-...
2
votes
3answers
20 views

Loading page template into shortcode

I am attempting to load a page template into a shortcode so I can easily load the content wherever I want. I have done some research and many people have said this code has worked for them but for ...
0
votes
1answer
8 views

Wordpress and Wordpress-test-lib not getting added to tmp folder

I’ve installed the wpcli and php unit testing to my imac and the wordpress and wordpress-test-lib files were added to my tmp folder as they should have. I used this to install the setup. bash bin/...
0
votes
1answer
470 views

Creating a child theme after numerous edits to parent theme

So a quick explanation: I started messing with Wordpress a couple of years ago, having experience with HTML, CSS and some PHP. At that time I was paid a few hundred bucks to whip together a ...
0
votes
0answers
10 views

Issue with navigation bar in child theme

I have created a child theme of the evolve theme. The evolve theme was not edited before localy and was just downloaded from the offical site. functions.php of child theme: <?php add_action( '...
0
votes
3answers
29 views

How to align a text left side while keeping vertically centered?

If you see this page, text are aligned left side but I also want them to align centered vertically. Similar to Middle Align + Left Align in excel. You can see this image to see what I am looking for
0
votes
0answers
21 views

Whats wrong with the code?

<?php /** * Plugin Name: card-display * Plugin URI: https://example.com/plugins/the-basics/ * Description: Cards Display in Website * Version: 1.0 * Author: Amarpreet Kaur India * ...
0
votes
0answers
11 views

CSS transition from 0px width to 100% width

I have a website where I have set the content to left 100% on normal screen and on click on the button it will show on the screen with left 0%. I want the transition to be smooth, like the width will ...
2
votes
0answers
12 views

srcset attribute in Gutenberg gallery blocks

Gallery block are very useful to layout thumbnails. However, when I choose a columns layout (for example, four columns layout), the srcset for this thumbnail remains the same as a large image. In ...
0
votes
1answer
13 views

Only allow chats from logged in visitors

I installed a plugin for a chat in a wordpress site; I want the widget to appear only for logged in users; in the php file that shows the widget I read: /* -------------------------------------------...
0
votes
1answer
474 views

Work and Display a Custom Post Type as a normal Post

I've created some Custom Posts for my Wordpress page and I can work fine with them. I can create a new one, edit it and display it in "archive-custom_post_type_name.php" and many more things. I can ...
0
votes
0answers
9 views

Elementor outside wordpress? [on hold]

I'm making a custom wordpress page that has a megamenu created with elementor. define('WP_USE_THEMES', false); require($_SERVER["DOCUMENT_ROOT"].'/wp-load.php'); get_header(); echo '...
0
votes
1answer
16 views

Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”

I’m trying to get BTF integrated with the Ajax Load More plugin and am having trouble on the filter results that are using two differen t taxonomies. Basically I just need to know how to query/call ...
0
votes
0answers
6 views

Website page not showing as 100% container [on hold]

my website is not fitting the full screen of browsers, I have tried 2 different computers and 4 different browsers. Could you please help me fix it? website is www.four-beacons.com
0
votes
1answer
8 views

Updater user with multiple roles

I have searched the net for explanations, but I only find my own question without any real answer. Like this one: Adding multiple user roles dynamically I need to dynamically assign more than one ...
1
vote
1answer
25 views

How to sort posts with the first 2 or 3 by latest, and the rest is random?

I'm trying to sort my posts in the way I stated in the title. What's the simplest way to do this? I know how to change the order by object using the pre_get_post hook. But how can I use it to get ...
0
votes
1answer
11 views

Deleting my old Wordpress site. - issues

Im trying to delete my Wordpress site. I am the admin but every time I go to the dashboard, under settings there is no option to delete site just export and import. I want this site gone.
5
votes
1answer
504 views

Link to Author archive from Navigation Menus in dashboard?

I'd like to display a grid of authors on my site showing the name of the author and their avatar. The tricky part is, I'd like to be able to control this from the Menus page in the dashboard so I have ...
0
votes
3answers
26 views

Why doesn't my very simple jQuery work?

I just deployed a new Wordpress site. Everything looks good, now I'm setting up jQuery: Child theme functions.php: //enqueue scripts function my_theme_enqueue_scripts() { wp_register_script( '...
0
votes
2answers
479 views

Why won't my Custom CSS Load

I'm in the process of adding a jQuery plugin to a site I'm working on. Needless to say it requires loading a custom script; also a custom stylesheet. Starting with the stylesheet I've been ...
0
votes
0answers
18 views

Help me to give a PHP Snippets

I wanna give points to members of my website when they rate our listings/products/posts, depending on 1star, 2star and so on they will get 10points, 20points...ultimately 5star get 50points. I'm using ...
0
votes
2answers
46 views
+50

Display sub-taxonomies based on SELECTED parent-taxonomy

I have two drop downs. The first one contains list of parent taxonomies from a custom post type. And the second one contains all the sub-taxonomies at a time. But I'm trying to display only those sub-...
0
votes
0answers
14 views

plugin operation launch every time i click on page

I created a plugin for specific heavy batch operation but it seems that every time I click on any other place (list posts , list page , ....) the heavy operation is launched again, so I want to know ...
0
votes
0answers
6 views

Woocommerce product import - cannot set post_date

I’ve imported a couple of thousand variable products and variations successfully, however I would like to be able to set the post_date (to force the order of the products displaying) I cannot choose ...
0
votes
0answers
11 views

Assign Parent Page - Now 404 Error

The strangest thing is happening. I have a page that I want to assign a parent page to. When I assign a specific parent page to it, then the page shows a 404 error. Here is the weird thing, this ...
0
votes
0answers
7 views

Appearance Menu - Add new items to the top of the menu

When adding a new new menu item on the appearance menu page (/wp-admin/nav-menus.php) is it possible that when you click the Add to Menu button that the new item would be added to the top of the menu ...
0
votes
1answer
42 views

Creating Custom user type just like custom post

How to create custom user types (User Role) just like the custom post types. For example: User Role 1: Having a normal profile field. User Role 2: Having 3 extra fields in the profile. 2 ...
0
votes
0answers
7 views

WooCommerce Category Shop Loop

I am currently having an issue with two things. One is the theme Byanca, the other is the plugin Product Filters, both purchased via CodeCanyon. I am still in touch with the developers of both the ...
1
vote
1answer
491 views

re-register custom post type with custom capabilities

I have created custom post type as below. register_post_type( 'connector', array( 'labels' => array( 'name' => __( 'Connectors' ), 'singular_name' => __( '...
0
votes
0answers
5 views

RSS - This XML file does not appear to have any style information associated with it. The document tree is shown below

i have a problem with my feed on wordpress that shows this message before the feed This XML file does not appear to have any style information associated with it. The document tree is shown below. ...
0
votes
2answers
267 views

Set Primary category using the Yoast SEO plugin

function set_primary_on_publish ($post_id) { global $post; $categories = get_the_terms( $post->ID, 'category' ); // wrapper to hide any errors from top level categories or products ...
-1
votes
0answers
10 views

Full Width, coloured horizontal bar, responsive design, theme questions

It's quite common these days to see this kind of design : example 1 example 2 That is... a page made up of full width horizontal coloured sections. Both of those sites are wordpress using custom ...
0
votes
0answers
11 views

Woo commerce hide category descriptions

i am currently building a site on my localhost, i have descriptions of product categories but on the category product page, it shows it twice. I have tried messing with my theme and custom css to hide ...
0
votes
1answer
477 views

How to add aria role and schema markup to custom walker container

Edit: after doing some research I've found that in the wp_nav_menu function uses the following code to display the containers value. if ( $args->container ) { /** * Filter the list of ...
0
votes
1answer
17 views

How do I link a featured photo to it's post?

I cannot change the url of the photo in the featured-image edit section. The page can be found at https://irregularus.com/tips-and-stories/ and if you click on the picture you will see that it just ...
0
votes
0answers
7 views

htaccess questions wordpress multisite in combination with other cms

I installed a wordpress multisite on a server that already contained different subdomains and another cms installation (wolfCMS). It currently works fine by going to the root.nl/wordpress/$year/ ...
0
votes
1answer
11 views

Remove formatting in rich text with Gutenbergs Block editor

In the classic editor, an option for removing all formatting in a selected text was possible in the visual tab. Is there such a function for Gutenberg? If not, is it planned at some point? What ...
0
votes
1answer
501 views

unable to add custom page/tab to my account woocommerce

I have been trying over and over but have come up empty handed. I have followed this tutorial (https://www.atomicsmash.co.uk/blog/customising-the-woocommerce-my-account-section/) to create a new php ...

15 30 50 per page