Skip to content

Magenaut

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

posts

Show single post child category from a determined parent

August 5, 2022 by Magenaut

I am trying to show in a single post child category from a selected category. For some single post, I have a category that is corresponding to an area. I want to show that category in a special area of my single post template.

Categories Q&A, Wordpress Tags categories, posts, single Leave a comment

Author post count in category

August 5, 2022 by Magenaut

I want to count authors post count in a specific category. How do i do that?
I have red this thread here but still can’t fiure it out.

Categories Q&A, Wordpress Tags author, categories, count, posts Leave a comment

Notification when visitor is on specific WordPress Article

August 5, 2022 by Magenaut

I am desperately attempting to find a way to get an alert when a specific article on my WordPress is visited (and no, I will not be flooded by emails, the code will be used temporarely) Being new to php, I used this code, but the site gets a critical error if I put it into the functions.php?

Categories Q&A, Wordpress Tags posts Leave a comment

How can I change the date format of the revision list?

August 5, 2022 by Magenaut

The date format looks like this “$ datef = _x ('F j, Y @ H: i: s', 'revision date format');” but I want it to be like this “$ datef = _x ('Y-m-d @ H: i: s', 'revision date format');“. I don’t want to modify the core of wordpress, is there a way to do it with a hook?

Categories Q&A, Wordpress Tags date, formatting, hooks, posts, revisions Leave a comment

How to create custom boxes with text inside?

August 5, 2022 by Magenaut

I want to put my math notes on a WordPress blog. I always write my notes using Pages and they always have the following format:

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

Set post title font size automatically according to number of words in post title

August 5, 2022 by Magenaut

When creating a post, i would like for it to check if the post title i set is longer than let’s say 15 characters, if it is then i want to change the font size to a smaller size. I am using the Enfold Theme.

Categories Q&A, Wordpress Tags count, posts Leave a comment

Templating of a specific post ID

August 5, 2022 by Magenaut

I’d like to know it’s possible to do something like this

Categories Q&A, Wordpress Tags posts, template-hierarchy, templates Leave a comment

how to hide empty fields of post category description?

August 5, 2022 by Magenaut

I am creating one website from scratch, where I have to display Category description, how to hide the div, if there is no description written in backend for the post category?

Categories Q&A, Wordpress Tags categories, description, posts, theme-development Leave a comment

How to create a post using REST API with sending data as a JSON body?

August 5, 2022 by Magenaut

I am able to create posts on my WordPress website using it’s REST API with the below curl request format. Website uses basic auth plugin for the authentication process.

Categories Q&A, Wordpress Tags curl, json, posts, rest-api Leave a comment

Get post id in a function when edit/add a post

August 5, 2022 by Magenaut

I am new to PHP and I am working in WordPress. I wrote a function in the functions.php file. My function is to update a custom field based on another field on the page when the user adds or edits a post. I am having trouble getting the post id in my function. How can I get the Post Id? What am I doing wrong?

Categories Q&A, Wordpress Tags functions, php, posts Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page22 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