Skip to content

Magenaut

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

functions

Programmatically Add Font-Awesome Icons to Category Widget

August 3, 2022August 2, 2022 by Magenaut

I use the Categories widget on my sidebar(s) and I would like to display a Font Awesome icon next to each category listed in the widget. The icon would be the same for all categories, for now, but I would like to give each category it’s own unique icon in the future.

Categories Q&A, Wordpress Tags filters, functions, icon, widgets Leave a comment

Function to check if author has posted within the last x days

August 2, 2022August 1, 2022 by Magenaut

Is is possible to check whether an author has posted in the last X days?

Categories Q&A, Wordpress Tags author, functions, get-posts, wp-query Leave a comment

Edit the_content function

August 2, 2022August 1, 2022 by Magenaut

I want to edit the default function the_content(). I know i can add_filter('the_content', 'with_my_function') but im having trouble outputting the old content with mine.

Categories Q&A, Wordpress Tags content, functions Leave a comment

How to redirect users to custom lostpassword page?

August 2, 2022August 1, 2022 by Magenaut

How to redirect users to custom lostpassword page when they click on the Error: Lost your password?. Because I set a redirect for wp-login.php to my custom login page. when a user click on Error: Lost your password? it requests for wp-login.php and then automatically redirects to custom login page. I know the function is present on wp-login.php file but I don’t know what changes shall I make to make this possible. Please help.
I have also renamed wp-login.php.

Categories Q&A, Wordpress Tags functions, php, redirect, wp-login-form Leave a comment

White screen error for a custom theme

August 2, 2022August 1, 2022 by Magenaut

I have created a theme for one of our clients using bootstrap framework!

Categories Q&A, Wordpress Tags custom-post-types, customization, fatal-error, functions, themes Leave a comment

What is wrong with this Shortcode? I get it in a wrong place inside the content

August 2, 2022August 1, 2022 by Magenaut

Hi to the community,
i try to build a shortcode that prints the Creative Commons logo and some text,
everything is working fine except that i put the shortcode at the end of the post but the shortcode goes to the top of the post content,

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

Default content for a post in one category?

August 2, 2022August 1, 2022 by Magenaut

This is a common function that adds default text to all posts:

Categories Q&A, Wordpress Tags functions Leave a comment

Checking for existence of a page by title?

August 2, 2022August 1, 2022 by Magenaut

I’m currently working on a plugin, and I essentially want to check if a certain page has been created.

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

Pagination adding page-numbers dots when using ‘mid_size’ => 0

August 2, 2022August 1, 2022 by Magenaut

Hey all, I’m attempting to do convert my current pagination:

Categories Q&A, Wordpress Tags functions, pagination Leave a comment

How to preserve PHP modifications while upgrading WordPress?

August 2, 2022August 1, 2022 by Magenaut

I made a lot of custom modifications in the PHP code of my WordPress blog. Namely in: archive.php, blog.php, footer.php, functions.php, header.php, search.php

Categories Q&A, Wordpress Tags customization, functions, javascript, php, upgrade Leave a comment
Older posts
Newer posts
← Previous Page1 … Page20 Page21 Page22 … Page25 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