Skip to content

Magenaut

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

pages

Determine if page is the Posts Page

August 2, 2022August 1, 2022 by Magenaut

On the Reading Settings page you can set a “Front Page” and a “Posts Page”. You can check whether the current page is_front_page();

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

Is there a default template file for child pages / subpages?

August 2, 2022August 1, 2022 by Magenaut

This seems like a very simple question. I’m looking for something like sub-page.php or page-child.php where I can do some different things on the child pages of my theme.

Categories Q&A, Wordpress Tags child-pages, page-template, pages, template-hierarchy Leave a comment

Is there a way (plugin?) to restrict a user to being able to edit just one page?

August 2, 2022August 1, 2022 by Magenaut

We use wordpress like a CMS and would very much like to allow users to have a “homepage”. Ideally they’d be prevented from mucking up the whole site.

Categories Q&A, Wordpress Tags pages, permissions, plugins, users Leave a comment

Change the_title() of a page dynamically

August 2, 2022August 1, 2022 by Magenaut

I’m developing a plugin that doesn’t use a custom post type, but separate database tables.
It’s a plugin that displays a list of courses with links that lead to the different course detail pages, where the user then can subscribe for a course.

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

How to display page content in a page template?

August 2, 2022August 1, 2022 by Magenaut

In my WordPress site, I made a custom page template, which contained a custom query [using WP_Query()]. With that query, I can perfectly get the posts of a certain category. But I want to show the page contents along with the queried posts.

Categories Q&A, Wordpress Tags page-template, pages, wp-query Leave a comment

How to load javascript on custom page template?

August 2, 2022August 1, 2022 by Magenaut

I have a custom page template where I would like to load some javascript. I suppose I could always include the javascript in the actual file, but that seems ugly. Is there any way to identify if WordPress is loading my custom-page.php file so I can enqueue the script only on that page?

Categories Q&A, Wordpress Tags pages Leave a comment

Get page id by template

August 2, 2022August 1, 2022 by Magenaut

I want to know if it’s possible to get the ID of a page with a specific template. Is this possible to get the ID of a page that assigned to “page-special.php”?

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

Searching multiple custom post types and pages

August 2, 2022August 1, 2022 by Magenaut

I’m using bainternet’s method for searching custom post_types and it works great. However, I’ve recently been requested to return more than one “specific” post type and perhaps individual pages for a support section on our site.

Categories Q&A, Wordpress Tags custom-post-types, pages, search, templates Leave a comment

How to add a new tab to page editor

August 1, 2022July 31, 2022 by Magenaut

Anyone knows how to achieve this?

Categories Q&A, Wordpress Tags metabox, pages, posts Leave a comment

How to add add_meta_box to specific Page Template?

August 1, 2022July 31, 2022 by Magenaut

I want to add add_meta_box to specific page type like Page Template, Like Product Template.

Categories Q&A, Wordpress Tags custom-field, metabox, pages Leave a comment
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 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