Skip to content

Magenaut

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

loop

Find most recent authors

August 1, 2022July 31, 2022 by Magenaut

What I’m looking to do it get the 16 latest posts from 16 different authors. In other words there would be the 16 latest posts, but no one single author would have more that 1 post on the page.

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

Use the_content outside the loop

August 1, 2022July 31, 2022 by Magenaut

I was trying to get first 100 words of the content in the header, and I use the following snippet to get the first 100 words in the loop, but is it possible to get the value outside the loop:

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

Show newly added posts since last user login time /date

August 1, 2022July 31, 2022 by Magenaut

I’m looking for a solution to create a custom loop which will only display the last added/ modified posts since the last user login to the site.

Categories Q&A, Wordpress Tags customization, login, loop, users Leave a comment

How to use a custom post type as front page?

August 1, 2022July 31, 2022 by Magenaut

I would like to set a site’s front page to be a single post from a custom post type. I have been able to alter the request for my front page to a Custom Post Type archive with the following code (originally posted here):

Categories Q&A, Wordpress Tags custom-post-types, loop, query, wp-query Leave a comment

How to control output of custom post type without modifying theme?

August 1, 2022July 31, 2022 by Magenaut

I have a custom post type ‘properties’ that I’d like to control the HTML output for. For simplicity, let’s focus on the archive view.

Categories Q&A, Wordpress Tags loop, plugin-development, templates Leave a comment

Broken pagination

August 1, 2022July 31, 2022 by Magenaut

Well I’m here again with almost the same problem as I had in this post three weeks ago, but let me explain what has happened since then:

Categories Q&A, Wordpress Tags customization, loop, pagination Leave a comment

How can i display the content in plaintext

August 1, 2022July 31, 2022 by Magenaut

i want to display my excerpt in plaintext. How can i do this?

Categories Q&A, Wordpress Tags excerpt, loop, the-content Leave a comment
Newer posts
← Previous Page1 … Page10 Page11
  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