Skip to content

Magenaut

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

shortcode

Automatically added brs and paragraphs?

August 3, 2022August 2, 2022 by Magenaut

Here’s my very simple shortcode:

Categories Q&A, Wordpress Tags editor, formatting, posts, shortcode Leave a comment

What characters are allowed as a shortcode tag and how should they be sanitized?

August 3, 2022August 2, 2022 by Magenaut

I am working on a plugin where the user can define shortcode tags himself. What would you suggest to allow in there? My thought is only allow ascii characters.

Categories Q&A, Wordpress Tags filters, plugins, shortcode Leave a comment

enqueue script only if it is not already enqueue

August 3, 2022August 2, 2022 by Magenaut

I want to include a script in a shortcode output, so I am trying this:

Categories Q&A, Wordpress Tags plugin-development, plugins, shortcode, wp-enqueue-script Leave a comment

Filter specific shortcode output?

August 3, 2022August 2, 2022 by Magenaut

Is there a hook in WordPress that I can use to filter the output of a specific shortcode? Something like this:

Categories Q&A, Wordpress Tags filters, hooks, shortcode Leave a comment

Shortcode created to check language not works

August 3, 2022August 2, 2022 by Magenaut

i need to create a shortcode to display a different Div depending on WP current language only when users are logout.

Categories Q&A, Wordpress Tags functions, php, shortcode Leave a comment

stray elements

August 3, 2022August 2, 2022 by Magenaut

I coded a wordpress shortcode for columns that basically inserts html via a shortcode. Problem is that wpautop adds stray p elements that renders the code invalid.

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

Stripping shortcode from custom excerpt function

August 3, 2022August 2, 2022 by Magenaut

I’m using the following function to create a custom excerpt for my homepage and categories pages so I can do it by character count and have a custom “read more”. However, I have captions shortcode showing up in my excerpt.

Categories Q&A, Wordpress Tags excerpt, functions, shortcode Leave a comment

Custom Shortcode AJAX 400 Bad Request

August 3, 2022August 2, 2022 by Magenaut

I’m writing a custom shortcode that will need to call some PHP file via AJAX, after some user event. But I am getting Bad Request 400 as if my wp_ajax_* actions aren’t being bound.

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

How to display a shortcode caption somewhere other than the_content

August 3, 2022August 2, 2022 by Magenaut

I want to disable shortcode captions for posts in one of my themes, and display the content elsewhere, such as in a sidebar.

Categories Q&A, Wordpress Tags attachments, captions, filters, images, shortcode Leave a comment

Remove width and height attributes from [gallery] output

August 2, 2022August 1, 2022 by Magenaut

WordPress automatically adds the width and height attributes to shortcode images.

Categories Q&A, Wordpress Tags customization, gallery, shortcode Leave a comment
Older posts
Newer posts
← Previous Page1 … Page11 Page12 Page13 Page14 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