Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
185 views

Wordpress post-template null warnings

I am getting these PHP8.0 Warnings from my WordPress site. The warnings are pointing to core code, not anything custom. When I turn debugging on there are no error messages on the site. I also checked ...
Dawn's user avatar
  • 43
0 votes
0 answers
60 views

Using a Page Template Not in Theme

My plugin creates (on demand via a 'create template' button) a page template that is stored in uploads/plugin-name folder (so it will survive a plugin update). The plugin also creates (again on demand)...
Rick Hellewell's user avatar
0 votes
1 answer
36 views

Create page (not the post type) dynamically

I'm working on a custom plugin where the user/customer will be purchasing a ticket (it'll be a woo product) to take a quiz and win some prize... So suppose the URL of a product/quiz would be like ...
Faye D.'s user avatar
  • 126
-1 votes
1 answer
601 views

Wordpress pagination returns the same posts

I did search the other posts here related to this problem, and tried all of them in my case, but I can't seem to make it work (probably because I don't know enough code) Can you please help me with ...
vyperlook's user avatar
  • 177
0 votes
0 answers
75 views

Give custom page template a custom post ID

I created several custom pages in WordPress. One displays real estate listings. When you click on the listing it opens into another custom page I created. The problem is no matter which listing I ...
Joey Lawrence's user avatar
0 votes
1 answer
313 views

How to use custom page for all posts with custom url, call another directory?

I have tried many different codes: <a href="<?php echo get_template_part( 'template/test/post' ); ?>"> Test 1</a> <a href="<?php echo ...
Akash Manna's user avatar
0 votes
0 answers
37 views

My pages are using my Index.php and not my page.php

So I'm making a custom theme, I setup the theme Created my pages on wordpress then created my Pages VS code i'll use an example of one page for this: I created the talent page with the slug: talent ...
Someguy's user avatar
  • 11
0 votes
1 answer
1k views

Wordpress custom pages in a folder

I cant find something similar I have a portal running WP and I want to create a mikro-site with 4 or more pages, under the same domain and let say I will name this : 'mikro' (I will use a different ...
Nomikos Strigkos's user avatar
1 vote
1 answer
478 views

is_account_page() change to page slug

i'm really new to wordpress php. which function should i use to replace is_account_page() in a code. here's what I'm trying to achieve before if (is_account_page()){ do some code here } after if (...
Cha's user avatar
  • 13
1 vote
0 answers
330 views

Missing 'Page Attributes' in page edit

Im missing Page Attributes from page edit screen. I have searched and not found any solution. Anybody with some ideas?
Morgan's user avatar
  • 11
1 vote
1 answer
405 views

page-slug.php not working but only for specific slug

I'm trying to create a page called "Comics" with the slug "comics" to use as the main table of contents for my webcomic site. I've created a page-comics.php file, however when I ...
ZackAkai's user avatar
0 votes
1 answer
29 views

Create page template

I am completely new to working in Wordpress but have some skills in coding. My company has a website where we write about different publicly traded companies. I want to add company specific pages to ...
Lohant00's user avatar
1 vote
1 answer
3k views

Add custom admin menu item for pages using a certain template

I am looking to add a new, custom menu item to the WordPress admin sidebar that displays pages that use a certain template. For example: a group of pages uses the template called "Retailer Sendout" (...
Mike Hermary's user avatar
4 votes
2 answers
25k views

Calling a function from functions.php in custom page/ blog post

Is it possible to call a function from functions.php in custom page or blog post? I put simple function in functions.php: function testTest() { echo "Test"; } And called it from the page: <?...
Mary's user avatar
  • 45
0 votes
0 answers
193 views

How to show WP admin edit page within template page/post?

So I am wanting to show the wp-admin/post.php?post=999&action=edit Inside my custom template of the single.php and page.php. So I understand that I can do it using an iFrame by basically ...
samjco-com's user avatar
0 votes
1 answer
95 views

How to show metabox on page if it is using a template

I was creating metaboxes for a special kind of pages. But i got stuck when showing metaboxes to the pages only who currently have the template 'Sky'. my template file name is sky-template.php and ...
Raashid Din's user avatar
0 votes
1 answer
18 views

Displaying posts inside table having issues

I am trying to create a comparsion table like the attached image. But it was not working like in the image. for that i have done following code what i am getting is not like the image for example the ...
James Paul's user avatar
0 votes
2 answers
57 views

WordPress blog posts template bug [closed]

I'm facing an issue I've never seen before. I fully copied a WP website to my localhost machine and everything was looking fine. When I was trying to make some changes on the blog page template (that ...
joaogdesigner's user avatar
0 votes
1 answer
374 views

Use same page-mypage.php template for several pages

How can I use the same page-mypage.php file for different pages, without resorting to page templates?
Pim's user avatar
  • 1,152
0 votes
1 answer
33 views

How do I customize the post page

I'm currently trying to add an post page on my Wordpress website. I put my new post page as the default post page, on Settings -> Reading. The id of my page is 353. So I created a new php file named ...
Ivaalo's user avatar
  • 1
0 votes
1 answer
55 views

Adding styles/scripts to specific page

I'm trying to add styles and scripts to specific template, But it's not working. In functions.php I tried: if( is_page_template('file.php') ){} if( is_page_template( get_template_directory() . 'file....
Bon's user avatar
  • 11
0 votes
1 answer
2k views

Inject class in body when particular page template is used

<body <?php body_class(); ?> > In header.php I have written the above code. But I want when this page template is in use: page-customer.php then body_customer class should go above. ...
WordCent's user avatar
  • 1,877
1 vote
3 answers
1k views

How to create a custom page(not a template) in a theme

I have been searching for theme developing info but all that are related to this subject are talking about a custom page at page.php. What I am trying to achieve is different. The scenario is that I ...
adrian li's user avatar
  • 143
1 vote
1 answer
139 views

Highest number of WordPress Custom Page Templates?

I'm little bit rookie in understanding WordPress core. But I would like to know that, is there any limit or should we limit to how many custom "page" templates we make in our custom theme? My ...
Vatsh Patel's user avatar
0 votes
1 answer
86 views

How to create custom search page

So I'm trying to make my search.php file loop through three custom post types when doing a search. I currently have three cpts , post, anime, peliculas and I'm currently using a function that will ...
Kirasiris's user avatar
  • 137
1 vote
1 answer
3k views

How do I hide the current page's title?

I have this code: add_filter( 'the_title', function() { return ""; }); Or, respecting the hook's arguments: function remove_title( $title, $id ) { $title = ''; return $title; } ...
coolpasta's user avatar
  • 949
0 votes
1 answer
51 views

How to detect if some page template has been selected

I'm wondering if, in the static front page, is possible to detect if the some page template has been selected for my page. I'm building a template and I'd like to have a static front page, but I'd ...
valentina.a87's user avatar
1 vote
1 answer
252 views

Custom Template 404 for specific custom post type

Some solution to create a custom template for (page 404) for specific custom post type.
Juan David's user avatar
1 vote
1 answer
287 views

custom meta box for page default template

I'm having issues getting some custom meta boxes to display on the page default template. I want these meta boxes to only display on the default template and disappear when the user chooses a ...
lblankenship's user avatar
1 vote
1 answer
3k views

Custom page with queries returns 404

My question is very simple. I created a new custom page template called page-printable.php. Then, I created a page with slug printable. If I access the page with localhost/printable or localhost/index....
Mateus Felipe's user avatar
0 votes
0 answers
1k views

Wordpress form submit to custom page template does not work

I have a form on the home page, which when user submits, the action takes him to another page. That another page is using my custom made page template page-quiz.php. So for the form submit action I'm ...
Limpuls's user avatar
  • 307
0 votes
1 answer
5k views

My custom template page not loading content inside it?

I want to create my own wordpress theme for that I have my own HTML template, I want to convert this HTML template to a wordpress theme So, I copied built-in wordpress theme "twentyseventeen" and I ...
Prasad Patel's user avatar
1 vote
2 answers
367 views

Password Protected Page Title

I'm currently using Sage 8.5.1 theme and have some password protected pages. The client would like to have the word "Protected" removed but not the title. I've used this code snippet add_filter( '...
kemmieg's user avatar
  • 21
0 votes
1 answer
25 views

Avoid pages losing template association on site re-deploy

To give you a quick background on what I am working with - I manage 3 copies of our company website; our live site that customers visit, a dev site that is live but not indexed so that our website ...
jessrodier's user avatar
0 votes
1 answer
89 views

How do you implement a page template automatically being applied to a page?

Question What can i do in a child theme to create a page template that will be selected by a new page by default. I wrote the page "default with sidebar" but how do i actually implement it and get it ...
JGallardo's user avatar
  • 194
0 votes
2 answers
815 views

how to show all post in my page-grid.php template page

I have custom my template and trying to convert my html into wordpress template, i have created one page page-grid.php .and i want to show all my post with images .but don't know how to do this .and ...
Bhu's user avatar
  • 3
0 votes
2 answers
6k views

Get parent of current page

please help me: I need to get the parent of the current page, in other words: to get the parent of $direct_parent.Thanks! <?php global $post; $direct_parent = $post->post_parent; $...
Perepelenok's user avatar
0 votes
1 answer
296 views

Problem with Displaying Custom Theme Page's Content

I've created a custom theme, and I want to display a custom theme page that I created, whose file name is page-about.php. The only way that I know that it's possible to display custom theme pages in ...
Gal Grünfeld's user avatar
0 votes
1 answer
71 views

Using external DB within wordpress

I have a basic page template that i'm willing to 'convert' to a dynamic one. What I mean is that I have an external table within WordPress's database that holds some data, And what I intend to ...
Gonras Karols's user avatar
1 vote
2 answers
46 views

create a template page for a post

i am new in wordpress and i am sorry for my english. May be my title is wrong. sorry for that. My question is like that. I have too many custom post types. I need some pages for a specific custom ...
Abuzer Killibacak's user avatar
0 votes
2 answers
31k views

How do I edit text displayed on my browser tab?

I want to remove the page name from displaying in my browser's tab. How do I hide the page name and only show the name of my website?
Alt-Rock Ninja's user avatar
1 vote
0 answers
50 views

Trying to return list of child pages for a template

I am trying to return a list of Child pages that belong to a template. I then show these on a different page. I have a Store, that has store child pages. On a products page (not related to the ...
Joana Ashford's user avatar
1 vote
1 answer
87 views

Populate editor with some content of a page with a page template

I have a page template like "page-salespage.php". what i'm trying to do is show default content in tinymice editor when this page template applies to a page. here's how i tried to achieve this, but i ...
greenarrow's user avatar
0 votes
1 answer
1k views

How to create different template designs for different pages in WordPress [closed]

OK please see this site. ld-wp.template-help.com/wordpress_58991 Now check the pages under SERVICES and the pages under OUR STAFF. This page https://ld-wp.template-help.com/wordpress_58991/services/...
user115722's user avatar
0 votes
3 answers
1k views

Different css file not working for the page template I created

I created a page template named custpage.php I also created a separate css file named style2.css to style the custpage which has html and php code. The page templates loads fine it shows under the ...
jhndoe1's user avatar
1 vote
0 answers
324 views

Get the url of a page template without using the page slug and ID

Can I get the url of the page "page-template-contactus.php" using "template-contactus" only?
M. Monica's user avatar
0 votes
2 answers
18 views

How do I set content in my pages so that it remains permanent while blog posts are added below?

Is there a way to post content that does not move or remains "static" within different pages? I am trying to set a description of each of my pages on my blog to give the reader an intro about each ...
Silvia Chavez's user avatar
0 votes
1 answer
31 views

How to capture GET argument on static page

So, I want to add some dynamic properties to my static page. Url of my page is mysite.com/pagename, so I've created template static-pagename.php. I'd like to capture get argument if I go to my page ...
Reygoch's user avatar
  • 189
31 votes
7 answers
96k views

Custom templates not showing up in template dropdown

I've got some problems with templates in Wordpress (multisite). I've created a file in the root of my child-theme folder (template-test.php) <?php /** * Template Name: Test template * */ ?> &...
Tom's user avatar
  • 315
0 votes
1 answer
146 views

What's the best way to manage sections on a page?

I bought some long time ago an HTML theme which was an one-page template, however I'm changing it to be a multiple page, for SEO reasons. Then, my homepage has a lot of sections, containing slideshow, ...
joaogdesigner's user avatar