Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

Wordpress

Get data from custom table and update relative post_meta based on meta_key

August 6, 2022 by Magenaut

long story short: I need to retrieve data from WordPress-created custom Table and add/update metadata to the related post (post_type=product). I can match the posts (products) and custom table fields by post metadata (_sku) which is the key of my query.

Categories Q&A, Wordpress Tags post-meta, wpdb Leave a comment

I need help using pre_get_comments to limit comments in the comments admin screen

August 6, 2022 by Magenaut

I am trying to limit the comments in the comments admin screen to:

Categories Q&A, Wordpress Tags actions, admin, comments, wp-query Leave a comment

Trying to add a custom social icon to a Twenty Twenty-One child theme

August 6, 2022 by Magenaut

I am trying to add an icon to the Twenty Twenty-One social icons, but having trouble registering it.

Categories Q&A, Wordpress Tags child-theme, hooks, menus, theme-twenty-twenty-one Leave a comment

Custom Rest Endpoint: Post/Put/Patch not working

August 6, 2022 by Magenaut

I’m trying to get a custom rest api working to handle some stuff. One part I need to do requires a Post/Put to the API.

Categories Q&A, Wordpress Tags plugin-development, rest-api Leave a comment

Is there a maximum length to a WordPress Page?

August 6, 2022 by Magenaut

I’ll try to be terse:

Categories Q&A, Wordpress Tags editor, memory, plugins, updates Leave a comment

Guttenberg Implementation on Front Page

August 6, 2022 by Magenaut

Is it possible to implement Guttenberg editor on some custom frontend page like we can do tinyMCE using wp_editor()?

Categories Q&A, Wordpress Tags block-editor Leave a comment

prev/next post links with custom query

August 6, 2022 by Magenaut

is it possible to use a custom query instead of taxonomy in previous_post_link()?
Or do I have to build the prev/next links completely custom if I want to use them with a custom query?

Categories Q&A, Wordpress Tags previous-post-link Leave a comment

cannot get user_registered date from get_user_meta

August 6, 2022 by Magenaut

I am trying to display the user_registered date from get_user_meta but it always displays as empty. If I try another field I do get a value so not sure why I don’t see anything for the date. If I check the database there is definitely a date.

Categories Q&A, Wordpress Tags post-meta, user-meta, users Leave a comment

How to calculate posts number?

August 6, 2022 by Magenaut

I want to achieve something like this: foreach ( $posts as $post ) { if ( $a = $b ) ) { // if true +1 to the result; } else { // if not true -2 to the result; } } echo 'Your result is X'; How to replace X with the result of … Read more

Categories Q&A, Wordpress Tags count Leave a comment

How to redirect user after login to a specific page?

August 6, 2022 by Magenaut

I have a page with mixed content in three different tabs. The first tab is open access to all but the content of the last two are for logged in users only so by sending the users to login with:

Categories Q&A, Wordpress Tags actions, login, redirect Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … Page430 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress