Skip to content

Magenaut

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

Q&A

Create custom page templates with plugins?

August 4, 2022August 3, 2022 by Magenaut

Is it possible to make custom page templates available from a plugin?

Categories Q&A, Wordpress Tags page-template, plugins, templates Leave a comment

How do you use a CPT as the default home page?

August 4, 2022August 3, 2022 by Magenaut

I have a client who’s site will be making heavy use of custom post types to configure their site. But I’m between a rock and a hard place for their requested home page.

Categories Q&A, Wordpress Tags custom-post-types, customization, homepage, hooks Leave a comment

Check if user is logged in using JQuery

August 4, 2022August 3, 2022 by Magenaut

I want to execute custom jquery code which shows login dialog to user if he clicks a button and he is not logged in. How could I do that?

Categories Q&A, Wordpress Tags jquery, jquery-ui, login Leave a comment

How to set and use global variables? Or why not to use them at all

August 4, 2022August 3, 2022 by Magenaut

UPDATE: My original question has been solved, but this is turning into a valid discussion about why not to use global variables, so I am updating the question to reflect that. The solution was <?php global $category_link_prop; echo esc_url( $category_link_prop ); ?> as @TomJNowell suggested.

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

How do I query a custom post type with a custom taxonomy?

August 4, 2022August 3, 2022 by Magenaut

For some reason I’m finding it a struggle to grab any posts using a custom taxonomy… can anyone unravel my stupidity?

Categories Q&A, Wordpress Tags custom-post-types, custom-taxonomy, query-posts Leave a comment

Two (or more) parallel (sub-)TLDs that are retained when surfing the site / dynamically set the site address?

August 4, 2022August 3, 2022 by Magenaut

I am running a site for a German NGO under the domain sub.example.org.
Recently, I added sub.example.ch for its Swiss spin-off.

Categories Q&A, Wordpress Tags site-url, url-rewriting Leave a comment

How to add Custom Blog Options to new blog setup form?

August 4, 2022August 3, 2022 by Magenaut

Seems like a simple enough requirement, but I’m struggling:

Categories Q&A, Wordpress Tags hooks, multisite, options Leave a comment

Why does my child theme CSS get called twice?

August 4, 2022August 3, 2022 by Magenaut

I created a child theme according the WP docs and added the requisite function

Categories Q&A, Wordpress Tags child-theme Leave a comment

Front end post editing using a form

August 4, 2022August 3, 2022 by Magenaut

I have a custom-post type with the standard meta boxes and some custom fields. How could I edit a post through a form in the frontend?

Categories Q&A, Wordpress Tags custom-post-types, editor, front-end, posts Leave a comment

Remove JSON API links in header html

August 4, 2022August 3, 2022 by Magenaut

Does anyone know how to remove the WordPress JSON API links in the header tag?

Categories Q&A, Wordpress Tags themes Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,339 Page2,340 Page2,341 … 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