Skip to content

Magenaut

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

Q&A

Check if post/page has gallery?

August 3, 2022August 2, 2022 by Magenaut

I’d like to run some code only if a gallery (inserted with the shortcode) has been inserted into a post/page. I did the following:

Categories Q&A, Wordpress Tags gallery, shortcode Leave a comment

Why WordPress choose data serialization over json_encode?

August 3, 2022August 2, 2022 by Magenaut

In my little age with WordPress, I’ve seen WordPress itself and its friendly plugins are using PHP serialize() in storing data into db in many cases. But in a recent search I found a serious community support for the json_encode() over the serialize().

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

Disallow Same Post Title

August 3, 2022August 2, 2022 by Magenaut

I am looking for some code where member can’t use the same title as another post already having or used.

Categories Q&A, Wordpress Tags posts, title Leave a comment

Restrict file uploads by extension?

August 3, 2022August 2, 2022 by Magenaut

Is there a way in WordPress 3.1 to restrict allowed file uploads by extension (images only) and file size?

Categories Q&A, Wordpress Tags media-library, tinymce, uploads, visual-editor Leave a comment

Custom Post Formats for Custom Post Types

August 3, 2022August 2, 2022 by Magenaut

The weight of opinion seems to favour using custom post types instead of custom post formats.

Categories Q&A, Wordpress Tags custom-post-types, post-formats Leave a comment

Turn Shortcode Gallery into Carousel in WordPress 4.4

August 3, 2022August 2, 2022 by Magenaut

I searched for existing plugins that could do carousels in wordpress posts but they turned out to not display correctly in WordPress 4.4 which released recently.

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

Importing Tweets with certain hashtags into WordPress

August 3, 2022August 2, 2022 by Magenaut

I’m looking for a way to import tweets into WordPress as posts.
In fact, I want to display tweets about a certain topic on a page in WordPress.
So page A would contain tweets about hashtag x, and page B would contain tweets hashtag y.

Categories Q&A, Wordpress Tags plugins, twitter, wpse-plugin Leave a comment

Prevent duplicate posts in wp_insert_post using custom fields

August 3, 2022August 2, 2022 by Magenaut

My source links are something linke this :

Categories Q&A, Wordpress Tags custom-field, customization, posts, wp-insert-post Leave a comment

How to display all custom fields associated with a post?

August 3, 2022August 2, 2022 by Magenaut

What is the best way to display/dump all custom fields associated with a post? It doesn’t have to be pretty, I just need to verify what is being saved in what field array for debugging.

Categories Q&A, Wordpress Tags custom-field Leave a comment

Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?

August 3, 2022August 2, 2022 by Magenaut

As part of a theme for a client, I want to be able to show a custom menu (defined via the admin) in a select box that automatically changes pages after changing the selection.

Categories Q&A, Wordpress Tags customization, menus, theme-development, themes Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,439 Page2,440 Page2,441 … Page2,571 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