Tagged Questions

Pages are static, timeless content that are unique from the regular blog chronology.

learn more… | top users | synonyms (1)

0
votes
0answers
5 views

How do I use the “Simple Posts Views Counter” on front page posts? [on hold]

I tried inserting "<?php echo_views(get_the_ID()); ?> times" into the index.php of the site's theme so all my articles will individually show the number of times they've been viewed. ...
1
vote
1answer
16 views

How to migrate .HTML pages to WordPress

I have a site I want to move into WordPress. Currently, each of the site's pages reside in the document root and end in .html. For example: Home Page = index.html About Us Page = about.html etc. ...
0
votes
1answer
16 views

Page listing Custom Posts

I have Custom Posts (actually Pages) that I can view on my default page (page-home.php) but how do I create a separate page, with the exact same content, and link to it? The page-home.php (the ...
0
votes
0answers
20 views

Pagination not working in search result [on hold]

Pagination is not working in search result. How to fix this? Functions.php function pagination($pages = '', $range = 5) { $morepages = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; ...
0
votes
0answers
24 views

archive.php can't find categorized posts

I keep getting the "Oops, post not found!" error message when I try and view all posts from a specific category. I think the issue is stemming from the fact that I'm actually using Custom Pages with ...
0
votes
1answer
20 views

is_page Funtion for Posts ?

I am using a plugin Bottom of every post which have a a function if( !is_page( ) && file_exists( $fileName )){ which is printing custom Text on bottom of every pages, i want to show them on ...
0
votes
2answers
27 views

Add custom text at bottom of every page?

We've published around 200+ pages on our WordPress site and I want to add an iframe to the bottom of selected pages, or every page. For the sake of time, is there a quick or easy way to do this job ...
0
votes
1answer
22 views

WordPress - Apperance > Menu

How do I use the menu on the dashboard under Appearance > Menu - http://prntscr.com/5052sl The one I'm using is based on page arrangement, so all my pages are displayed on the menu under some pages. ...
0
votes
2answers
25 views

Proper way to replace the_content only for pages created by custom plugin

I'm creating a plugin that needs to replace the_content of only two specific pages that it created upon activation. Here is my code: add_filter('the_content', 'emd_content'); function ...
0
votes
1answer
10 views

Need 404 behaviour for blank parent page

My pages look like this Home (Has content) Products (No content) Product 1 (Has content) Product 2 (Has content) Product 3 (Has content) Contact (Has content) I only created the "Products" page ...
-1
votes
0answers
8 views

How to display tags for pages

I'm using a plugin for adding tags to pages. How would I go about displaying these tags on the frontend (on the page)?
0
votes
1answer
18 views

Issue On Displaying Pages with Post Name Permalink

I have a simple Theme like below Right now when I navigate to localhost and site root directory I am able to see content from header.php , footer.php and page.php. then, I simply generated some ...
0
votes
0answers
34 views

How to exclude sidebar from pages?

I put some page id's in exclude page in appearance -> widget -> pages -> left sidebar. But these pages still exist in sidebar which is not to. Site: http://goo.gl/ek63ye Here's the code of left ...
-2
votes
0answers
7 views

Page creation issues [closed]

I am trying to add a page like "about" but find it creates two. so if its on the header it would look like this:- ABOUT ABOUT So I just want to create one page and have no duplications, any ideas ...
0
votes
0answers
13 views

Excluded pages continuous displaying

I put some page id's in excluded page in sidebar but still these excluded pages continuous displaying to the sidebar which is not to be display. I'm using different plugin but still those excluded ...
0
votes
1answer
55 views
+50

Using wp_list_pages to create 2 lists of pages and include and exclude some of them depending on their category

I would like to create 2 lists of pages and include and exclude some of them depending on their category. In the following example, I have my 2 lists. A list of promoted pages and a list for the rest. ...
-1
votes
0answers
22 views

Search in an accordion?

I think I'm falling victim to WP's famously bad search function. I have masses of linked info in an accordion that i would like to search for and click on the link in the search results page, but the ...
0
votes
0answers
32 views

Display page content inside a onclick popup or fancybox or lightbox

I'm doing a single page theme. So in that I would like to have some links which load the page content of the page inside a fancybox or lightbox. I've already tried Best way to load page content in ...
0
votes
0answers
13 views

Duplicate content problem with parent slug

I have one page without a parent page attribute called "bar", with slug "bar": /bar/ I have child pages, for example "foo", which has the "bar" page as parent attribute and slug is "foo": ...
0
votes
0answers
31 views

Multiple Page Loops on front-page.php

Looking to build an easily editable front-page.php using multiple loops set to display pages. One way I thought about doing this was making a HOME page, then setting "About us, Services, Team" all ...
0
votes
2answers
30 views

Creating custom page template

So, on my wordpress site I have page called "Books" and sub-pages, each containing info about some book. It looks something like this: Books Harry Potter, J.K.Rowling Some Other Book, Who WroteIt ...
0
votes
0answers
43 views

Wordpress 4 and wp_editor() Not Showing Visual/Text tabs

I use wordpress a lot, i develop for it a lot too! I have a client website that i have added 10 custom meta boxes to the post edit screen in functions.php . All the meta boxes have an editor using ...
0
votes
1answer
19 views

List of pages - AJAX load more

I apologise if this is an extraordinarily broad question, but I am getting a little lost. I am using the below to show child pages (note: I am using Advanced Custom Fields) <?php /** * ...
0
votes
0answers
9 views

Splitting of Page

I have opted to go with a single page layout with custom fields. However is becomes tedious to scroll down the page to edit content at end. As such I would like to split the page into smaller parts. ...
0
votes
1answer
10 views

Post/page title to permalink transformation - what is behind the scenes?

If the post name is used as the permalink, what "transformations" does Wordpress do to it when using it as the URL and when does it perform these transformations? Like stropping spaces and special ...
0
votes
1answer
41 views

Programmatically add a custom page/path/url/route to WordPress

Conceptually what I want to do is super simple. In my plugin, I want to add a single path/route to my wordpress site: [mysiteurl]/testpath ... that loads a particular file, like: ...
0
votes
0answers
31 views

SOLVED - Rewrite of custom taxonomy displayed on a page

I have a custom taxonomy "product-category". All parent terms are displayed and linked on a page myurl.com/directory/ with some custom code. Example link: /directory/accessories This gives me a 404, ...
0
votes
1answer
69 views

Avada Theme - Display results from a specific category [closed]

In the Avada Theme there is a page template called 'FAQ page', this 'FAQ Page' can have categories (faq_category_1) and in these categories there can be unlimited questions with answers. This part of ...
-2
votes
0answers
31 views

How Do you show thumbnails when you select a page template

Hi I want to show a thumbnail of a page template in WordPress when a user selects a page template from the template drop-down. Has any one implemented in away some form of the above, I was think of ...
0
votes
0answers
18 views

How to display time when page is created and edited

On posts I use this: Time created <?php the_time('Y-m-d'); ?> Edited (updated) <?php the_modified_time('Y-m-d'); ?> It works fine on posts, but on page template it displays just ...
0
votes
1answer
27 views

If is page, archive or search output this code

Hi there I'm trying to make this code works for more than just home page but I'm getting errors while trying to accomplish it... can someone help me? I'm trying to use this: <?php if ...
0
votes
1answer
20 views

User Selectable Delete of Pages

in my WP MultiUser project i am designing a template for deleting a page from the front-end (only the super admin can access the back-end admin panel) I have almost achieved the desired result, but ...
0
votes
3answers
70 views

Custom Post Type Name Causing Problem

Please ignore my poor English. I have custom post type (order). and its working like charm, But default post type (pages) list are not displaying in wp-admin side. You can see More information in ...
-1
votes
1answer
83 views

How to get current page id outside the loop?

How to get current page id outside the loop? i am searching on google for a very long time but in vain.
0
votes
0answers
22 views

What's going on with the get_pages() 'number' argument?

According to the codex, the get_pages() 'number' argument works the same as an SQL LIMIT. number (integer) Sets the number of Pages to list. This causes the SQL LIMIT value to be defined. ...
0
votes
1answer
28 views

get_pages — parent vs child_of?

I'm working with get_pages on a site that has a very clean and hierarchical structure. As part of a template, I wanted to show child pages as part of the template's 'boilerplate'. Reading the Codex ...
0
votes
0answers
18 views

Displaying Custom Post Type on Page with Same Title

I'm building a sports blog. I have a custom post type called conference. Each conference post contains HTML that is displays the team logos horizontally on my team custom posts as shown in the ...
-1
votes
1answer
23 views

Pagination showing same posts despite changing page

I know this is a common problem and there are answers available but I am using pre-existing code from a premium theme, which doesn't seem to work for me. In the blog.php page template, I have: ...
0
votes
1answer
28 views

Why isn't my link attribute getting my css?

<link rel="stylesheet" type="text/css" href="style.css" /> That is the line I am using. The style.css file is in the same directory as the file I am running that from. Tt specifically just ...
0
votes
1answer
16 views

How to map my php files as the files for pages

How do I map my php files (like a file that is supposed to be the page "blog" and it contains all the html and php) to the actual page the html is supposed to be marking up many thanks note: I would ...
0
votes
1answer
14 views

Creating a page that does not show up in the frontend navigation bar

My plugin needs to add a few screens to the frontend of the site, eg. a history overview (http://www.site.com/history?event=X). At first, I implemented this by programmatically adding a page with a ...
0
votes
1answer
25 views

Widget & storing a Select box choice

I am creating a simple widget which displays all of the pages on the website. The trouble I am having is how to store the user's choice and display it on the front end. At the moment, when saving my ...
-1
votes
1answer
38 views

How to detect if is_404() or is_page() or etc…? [closed]

is there any way, to output, like this: echo $current_type; and it gave me: is_404() or is_page() or whatever it is_blabla()
0
votes
0answers
23 views

Restrict my pages from public

In my site I want to restrict some pages from public. How can I do this? example : www.xyz.com/members This pages only access when the user is log in but now its access public also using coping ...
0
votes
0answers
25 views

How to show custom post type in page hierarchy?

Is it possible to show a list of pages with a custom post type included in that list if it's parent is a page? So if I was using the query more specifically something like get_pages(), ...
0
votes
0answers
27 views

Show only grandchild pages with get_pages

I've been struggling with a problem where I need to display the content of child and grandchild pages within a page. Currently I have <?php $mypages = ...
0
votes
0answers
18 views

Have the plugin completely render a page

I'm working on a plugin that uses pretty links by using rewrite rules like so: add_rewrite_rule( $slug . '/email/([^/]*)/?', 'index.php?pagename=' . $slug . ...
0
votes
0answers
16 views

User editable blocks per page

I'm pretty sure this question has been asked a million times but I can't seem to find an answer. Imagine a page template with multiple sidebars. What I want the site admin to be able to do is create ...
0
votes
1answer
50 views

redirect index.html inside folder to wordpress page of same name

i have a wp page called mysite.com/stuff/ i have a subdirectory on my ftp called mysite.com/stuff/index.html with a bunch of files and other subdirectories inside. when i go to ...
0
votes
1answer
25 views

Redirect page to default subpage

On a site that I'm working on I have a particular page that has four subpages, which act like process steps. I want the parent page to always redirect to the first of these as a default, should the ...