How to show the posts listing on dashboard or custom page in admin panel?

I want to show posts listing(almost like the default post listing page) on the dashboard page. And if that is not possible then maybe on a new page in the admin area.

Basically, I want to create a "My Desk" page for users where they can see some posts listed categorised by post meta. I’m fairly new to WordPress and can’t get an idea as to how this can be achieved.

Any help is appreciated, thank you!

How to bring follers from my Facebook page to Instagram?

Hello everybody,
let me explain better, not being familiar with instagram.
I have a facebook page of about 10,000 followers and I would have decided to open the same page on Instagram as well.
Since from the beginning it is difficult to create a niche of followers on Insta, I connected my Facebook account to the new Instagram profile I just created.
I thought that in the recommended people I could find the followers I already had on Facebook, but instead I only found the friends I have on my…

How to bring follers from my Facebook page to Instagram?

WooCommerce – Display Product image and name on Orders page

I used the solution here (linked below). It works great. However, it glitches when displaying an order containing a product that has since been deleted. Is there a way to modify the code so that on products that have been deleted it just shows nothing instead of a huge paragraph of gibberish? Just curious!

Original solution was by @meloman : Display order items names in WooCommerce admin orders list

Access page in subfolder URL

Is it possible in WordPress to have a custom subfolder URL for a specific page?

For example:

I want to create a page called pizza and make it accesible from https://website.com/food/pizza

I know that a page is actually a custom post type (of type page) and it can be accessed via it’s slug (post_name field in the DB). But changing the slug to food/pizza is not working.

I could create a CPT that "lives" under the food folder. But I don’t like it as a solution.

Using CSS, how can I remove a Woocommerce grid from a specific page that has ::before & ::after inserted in it [closed]

Everything between the before and after needs to go

The specific page ID is 6329

I have tried different variations of the CSS below, but still can’t get it to work!

CSS used:

.page-id-6329 .products.columns-3 {       display: none !important; } 

and other variations on the same lines with no success. I think it has to do with the ::before and ::after, but have no idea how to write the CSS.

I am setting up a website that caters for retail and wholesale. The retail will show the normal category grid to the user, while the wholesale will have a special page where a list of products shown in a table. The wholesale page, as it is now, shows the category grid AND the table underneath. I just need to get the grid to disappear for that particular page.

Any help will be appreciated. Thanks

Unqueue css file from specific page

I’m trying to unqueue style.css file from a specific page.

In my functions.php (child theme) if I add:

add_action( 'wp_enqueue_scripts', 'apc_child_desregistra_estilos', 11 ); function apc_child_desregistra_estilos() {     wp_dequeue_style( 'main-styles' ); } 

It works.

But when I add something like:

if (is_front_page()): wp_dequeue_style( 'main-styles' ); endif; 

It doesn’t.

I really don’t know what I am doing wrong.

Not able to access WP Admin, it says “Sorry, you are not allowed to access this page.”

All of a sudden we are not able to get to the admin panel of the website. Once I log into /wp-login.php it redirects me to the homepage or /wp-admin (depending on whether I visited wp-admin in logged out state or not)

WordPress version: 5.6.2

When it does redirect to /wp-admin I see:

"Sorry, you are not allowed to access this page."

My first guess was that someone (maybe another user with administrator access) changed the roles. That wasn’t the case, I confirmed by looking at the database tables and the users had the wp_capabilities that corresponded to being an admin.

Then I tried a bunch of other stuffs and none worked:

  1. Created a new user using wp_create_user, added administrator capabilities, logged into that account from a private browsing window. Same.

  2. Went to the WordPress git repo searched for where "Sorry, you are not allowed to access this page." appeared, it did at many places so I added random string of text in some files to see exactly which one, it came from the file wp-admin/includes/menu.php in the last lines:

    if ( ! user_can_access_admin_page() ) {

  3. I thought maybe user_can_access_admin_page() returned wrong information for some reason, so I used a page template to output some data like so

if ( current_user_can('administrator') ) {     echo "Yes, admin"; }  if ( user_can_access_admin_page() ) {     echo "Can access admin"; } else {     echo "Can't access admin"; } 

Both returned true, yet the check on menu.php fails. Not sure why.

  1. Replaced wp-admin and wp-includes folder with fresh copies downloaded from WordPress org.

  2. Renamed the theme and plugin folders to rule out the problem coming from a plugin or theme. Not the case, it still was the same.

  3. Checked the error log of Apache2 as well as enabled debugging log for WP to look for any related error, none found. Nothing special, all the usual PHP notices that I have seen before.

  4. At one point I noticed the SSL certificate expired a month ago (problem started yesterday though) so just to be sure I renewed that as well, still the same.

Anybody who have an idea on what might be wrong would be a great help!

Google Sitemap XML isn’t showing About Page, Contact Page, Etc, only

My google sitemap has been uploaded to Google Search Console using mywebsite.com/sitemap_index.xml When I click to the page in google search console ‘sitemaps read:’ I can only see the following:
website.com/author-sitemap.xml
website.com/category-sitemap.xml
website.com/e-landing-page-sitemap.xml
website.com/page-sitemap.xml
website.com/post-sitemap.xml

The actual pages my site consists of are: website.com/about
website.com/work
website.com/services
website.com/contact

Should the about/work/services pages be listed in Google Search Console when I click into the sitemap_index.xml file? Or have I done the xml file incorrectly?

I am using a Child Theme on Elementor on WordPress. The only thing in my robots.txt file is the following
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
I do have a devoted page website.com/sitemap with all my pages listed out

[![my active sitemap on Google Search Console][1]][1] [1]: https://i.stack.imgur.com/Vnaju.jpg