Skip to content

Magenaut

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

templates

What part of template to edit to remove category name from the top of posts?

August 4, 2022 by Magenaut

In the “Twenty Twenty” template I cannot figure out how to remove the display of category name(s) from the top of posts.

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

Exclude a category from the filed under list only on some templates

August 4, 2022 by Magenaut

this is a follow up question to this post Exclude a category from the filed under list

Categories Q&A, Wordpress Tags categories, exclude, list, templates Leave a comment

Include Lumen/Laravel app in custom WordPress template

August 4, 2022 by Magenaut

I’ve built a small app with Lumen and now I want to include it on my wordpress site. However I have difficulty getting it to work. My approach was making a custom template and using it on a post with the URL I want. This is how it looks:

Categories Q&A, Wordpress Tags templates Leave a comment

Differentiation between index.php and page.php

August 4, 2022 by Magenaut

I am currently developing a theme in wordpress for learning purposes.

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

Page template option missing

August 4, 2022 by Magenaut

I checked everything suggested in that response: “page attributes” option is checked, template file is located at theme root folder, I tried several file encoding options in my text editor (UTF8 with or without BOM), I tried switching to another theme then back to my custom theme, I do have the right stuff on top:

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

Setting posts_per_page for taxonomy term template

August 5, 2022August 4, 2022 by Magenaut

I have a custom taxonomy term page set up to display posts associated with that term (taxonomy-insight_type-academia.php). I figured I could use the following to limit the posts on that page based on code found here:

Categories Q&A, Wordpress Tags functions, posts, taxonomy, templates, terms Leave a comment

Conditional to determine if search.php page is the current template

August 5, 2022August 4, 2022 by Magenaut

I have a specific CSS-file for my search results, so the search.php template. I want a PHP if-condition to determine if the current template is the search.php template, so that I can load that CSS-file with wp_enqueue. The condition should work in the functions.php file.

Categories Q&A, Wordpress Tags conditional-tags, search, templates Leave a comment

Get name of the current template file

August 5, 2022August 4, 2022 by Magenaut

I’ve found this to display the current name of the file used in template:

Categories Q&A, Wordpress Tags templates Leave a comment

How to create custom URL routes?

August 5, 2022August 4, 2022 by Magenaut

I have a very peculiar requirement, hopefully, I can explain it without being too confusing. I created a page template where I list some properties I get from an external XML file, so far no problems, let’s say the URL is like this:

Categories Q&A, Wordpress Tags mod-rewrite, rewrite-rules, template-redirect, templates, url-rewriting Leave a comment

How do you find out which template page is serving the current page?

August 5, 2022August 4, 2022 by Magenaut

When you activate a wordpress theme, it’s always a hassle to find out which file to go to change things.
Any idea how to simplify things?

Categories Q&A, Wordpress Tags templates Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page9 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