All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1
votes
1answer
24 views

Using WordPress almost only for a contact form

I have a MediaWiki website and MediaWiki isn't easy to do layout as WordPress or Drupal are (also for forms and there are no page builders). I think to create a separate website with a separate ...
0
votes
0answers
10 views

Ho to get page URL assigned to specific page template (outside that template page)

I have created custom page template (template-clock.php) This template is dynamic and it is getting information by link (?cat=99). Now I want to create dynamic link to that page from home page. But ...
0
votes
2answers
27 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: <?...
0
votes
0answers
10 views

Missing content on page, seems to have happened recently but latest revision date says June 2018

Our front office recently realized one of our pages was missing all of its content. (Theme, navbar and sidebar, are all intact.) I check the page in WordPress and it shows the latest Revision was ...
0
votes
0answers
19 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 ...
0
votes
1answer
14 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 ...
0
votes
1answer
15 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 ...
0
votes
2answers
29 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 ...
0
votes
1answer
195 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?
0
votes
1answer
26 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 ...
0
votes
1answer
19 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....
0
votes
1answer
100 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. ...
1
vote
3answers
24 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 ...
1
vote
1answer
30 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 ...
0
votes
1answer
24 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 ...
0
votes
1answer
100 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; } ...
0
votes
1answer
23 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 ...
0
votes
1answer
100 views

Custom Template 404 for specific custom post type

Some solution to create a custom template for (page 404) for specific custom post type.
1
vote
1answer
50 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 ...
0
votes
1answer
127 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....
0
votes
0answers
628 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 ...
0
votes
1answer
2k 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 ...
1
vote
2answers
70 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( '...
0
votes
1answer
18 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 ...
0
votes
1answer
25 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 ...
0
votes
2answers
154 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 ...
0
votes
2answers
2k 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; $...
0
votes
1answer
195 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 ...
0
votes
1answer
56 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 ...
1
vote
2answers
40 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 ...
0
votes
2answers
16k 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?
1
vote
0answers
40 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 ...
1
vote
1answer
64 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 ...
0
votes
1answer
897 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/...
0
votes
3answers
365 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 ...
1
vote
0answers
282 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?
0
votes
2answers
11 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 ...
0
votes
1answer
21 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 ...
22
votes
7answers
48k 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 * */ ?> &...
0
votes
1answer
51 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, ...
0
votes
1answer
278 views

Load one page with parent and child pages

Given I have a pretty long page and I don't want the user to insert content in the back-end all at once. More specifically, this given page is made of several sections (I'm actually using fullPage.js) ...
1
vote
3answers
2k views

How to inject custom url path for page ?

Is it possible to make custom URL path for pages ? The current page url is http://localhost.dev/insight which I need to show like http://localhost.dev/city/local/insight are any option in wordpress ...
0
votes
1answer
48 views

Proper way of establishing custom landing pages in WordPress

Within WordPress 4.6.1, with the TwentySixteen theme, I have 2 general questions in regards to establishing a landing page. From within my child theme folder, where and how do we create a new page to ...
0
votes
2answers
101 views

How can I use a specific wordpress page template if certain words are used in page title [closed]

I'm creating a wordpress theme for a client to use in his existent wordpress site. Anyways, I've completed the theme except one specific thing. I see that he has lots of pages with the keyword Module ...
1
vote
3answers
71 views

Creating a Page of Posts

I've been away from Wordpress for a few months, and now I'm struggling to remember how to create a Page of Posts. It's most infuriating! The Current Site I have home.php set up to display the latest ...
0
votes
1answer
41 views

Page template is missing fields or is invalid when I updating the template

I am trying to update a page template, and when I do something strange happens. Let me explain.. I have a template "Hat Size Guide" where the code file is /themes/my-theme/pages/page-hat-size-guide....
-3
votes
1answer
51 views

How does WP knows which template to use for a page

This website uses WooCommerce. There is a Shop menu item that when clicked it displays the product categories of WC. I am trying to figure out how Wordpress knows what to display when visiting this ...
1
vote
2answers
286 views

Loop and Page template : my WP_query don't take args

I have a problem with a loop that I try to put into a custom Page template. I would like to display posts with conditions, but whatever I put in my WP_query parameters, it is not taking in ...
0
votes
1answer
20 views

Wordpress Page All Content In Template Good Or Bad Convention?

I just started building wordpress templates after coming from .NET so I am a bit new to it all. While building a template I have several pages that I want to be filled with static content and not ...
0
votes
2answers
2k views

Custom page template for multiple pages

A site I'm currently working on has a page structure like this About Us | |_People | | | _ Person 1 | _ Person 2 | _ Person 3 |... etc ... Every 'Person' page is a separate page, but they all ...