Skip to content

Magenaut

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

paths

Apply function.php filter only if url not has /amp/

August 5, 2022 by Magenaut

I applied a filter to remove theme styles and javascript in function.php, but I want this to happen only if the url not ends with /amp/

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

Add custom path to url to specific pages

August 5, 2022 by Magenaut

Right now all pages path like /faq/ or /about/. I need path like /home/faq/ /home/about. I tried change url slug in edit page. But WordPress change my home/faq to home-faq.

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

Symbolic Links on dev box with plugins and stylesheets

August 5, 2022August 4, 2022 by Magenaut

I’m using mac os x 10.6 with xampp.

Categories Q&A, Wordpress Tags paths, plugin-development, urls, wp-config Leave a comment

How to get the path to the current theme?

August 2, 2022August 1, 2022 by Magenaut

This code is used to get the directory of the current plugin: plugin_dir_url( __FILE__ ).

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

When moving a WP site, why does wp-admin redirect to old site?

August 2, 2022August 1, 2022 by Magenaut

I am in the process of moving a WP site from one host to another. I copied the database and all the files, created a new database and imported the old one. I then changed the wp-config file. The home page shows fine, but when I try to access /wp-admin it takes me back to the old site.

Categories Q&A, Wordpress Tags paths, site-url, wp-admin Leave a comment

theme path in javascript file

August 2, 2022August 1, 2022 by Magenaut

I need to include the path to my theme file within a javascript file. How would I go about this? I have already tried:

Categories Q&A, Wordpress Tags javascript, paths, theme-development, themes Leave a comment

What’s the difference between get_home_path() and ABSPATH?

August 2, 2022August 1, 2022 by Magenaut

What’s the difference between get_home_path() and ABSPATH?
Isn’t the point of both to point to the WordPress install root?

Categories Q&A, Wordpress Tags core, paths Leave a comment
  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