Skip to content

Magenaut

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

shortcode

Why might a plugin’s ‘do_shortcode’ not work in an AJAX request?

August 5, 2022August 4, 2022 by Magenaut

tl;dr: Contact Form 7’s shortcode doesn’t work in an AJAX request when called with do_shortcode

Categories Q&A, Wordpress Tags ajax, plugin-contact-form-7, shortcode Leave a comment

How can I make all gallery images to open in a new window?

August 5, 2022August 4, 2022 by Magenaut

How can I make all gallery images to open the high resolution image in a new window?

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

How to manually fix the WordPress gallery code using PHP in functions.php?

August 4, 2022August 3, 2022 by Magenaut

It’s been talked many times that WordPress outputs some really bad code for the built-in gallery function.

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

Enqueue Scripts / Styles when shortcode is present

August 4, 2022August 3, 2022 by Magenaut

What is the idea way to register/enqueue scripts and/or styles for use in plugins?

Categories Q&A, Wordpress Tags conditional-content, shortcode, wp-enqueue-script, wp-register-script, wp-register-style Leave a comment

What does extract( shortcode_atts( array( do?

August 4, 2022August 3, 2022 by Magenaut

The codex says

Categories Q&A, Wordpress Tags shortcode Leave a comment

current_shortcode() – detect currently used shortcode

August 4, 2022August 3, 2022 by Magenaut

In a plugin class I want to provide simple fields for public data: email, phone number, Twitter etc. The list can be extended.

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

do_shortcode() within Admin Page

August 4, 2022August 3, 2022 by Magenaut

I’m using a few plugins that have shortcodes … however, instead of creating a public page for the content, I’ve created some new pages within the admin using add_menu_page and I need to know how to utilize do_shortcode() within this context.

Categories Q&A, Wordpress Tags add-menu-page, shortcode, wp-admin Leave a comment

Split Content and Gallery

August 4, 2022August 3, 2022 by Magenaut

Is there a way to split up the post content and the gallery short code. I want to display the gallery outside my normal content no matter how or where it is placed. I can use this to get the shortcode itself:

Categories Q&A, Wordpress Tags gallery, loop, shortcode, the-content Leave a comment

How to return loop contents

August 4, 2022August 3, 2022 by Magenaut

At times, I need to return the output of a loop (usually with WP_Query like in this example) for use in a shortcode or with a filter on the_content.

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

add_filter and changing output captions of image gallery

August 4, 2022August 3, 2022 by Magenaut

I’d like to change only one output of native WP Gallery (in media.php)

Categories Q&A, Wordpress Tags filters, gallery, shortcode Leave a comment
Older posts
Newer posts
← Previous Page1 … Page8 Page9 Page10 … 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