Tagged Questions

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

learn more… | top users | synonyms (1)

0
votes
1answer
33 views

Displaying direct children of other pages on homepage

I am trying to display the DIRECT children of another page on the homepage but I can't seem to get it working it just shows all of the page titles on the site.. It needs to be within a wp_query as I ...
0
votes
0answers
41 views

Excerpt for each post type and for is_front_page

i try to adjust the excerpt for each post type and especially for the front page. function isacustom_excerpt_length($length) { global $post; if (is_front_page() || is_home()){ if ...
0
votes
1answer
407 views

How to get current page nearest parent id?

I am trying to get current page nearest parent id not top-level. For example I have added page like this: Now If I am in Junior Design Award 2013 page I want to get his parent id 765 not top-level ...
0
votes
1answer
49 views

Is there a way to stop WP editor deleting <gcse:searchbox-only></gcse:searchbox-only>

I would like to paste my Google Custom Site Search code into the editor to appear on one of my pages. It works when pasting into the "text" side, but get's turned into a NBSP if I flick to "visual" ...
0
votes
0answers
43 views

Unable to manipulate rewrite rules without calling flush_rewrite_rules() each time

I am trying to make a small portfolio website in multiple languages. Just a few pages (the actual blog doesn't need to be in multiple languages), mainly pages that are generated by a own-made plugin. ...
0
votes
2answers
77 views

How to get main menu only with wp_nav_menu

I have created one menu and have some sub-menu but I don't want to display any sub-menu from my template. My Menu code: <?php wp_nav_menu( array('menu' => 'header-uk', 'menu_id' => 'nav', ...
0
votes
1answer
182 views

Multiple pages on a single page

I have the following code (created very kindly by alchemyth in response to a question I posted on the WordPress.org forum here) that I hope to use to display lots of pages on a single page: <?php ...
-3
votes
2answers
50 views

What function does the loop of displaying posts?

What is the function that does the echoing of posts like post title in h1 and then the post body and then the author name. I hope everyone understood what I'm trying to say else please ask in comments ...
0
votes
0answers
40 views

404 error on every post and page other than home

I am developing a wordpress theme and I think at some point I messed something up pretty badly in the wordpress system because nothing works anymore. I have tried several different themes, mine and ...
0
votes
0answers
84 views

Allow users to create their own page/s

I Create a network where any register user have a profile, from user profile i want enable user to create own page/s where he can post like Facebook. There is a way to do this with wordpress or i must ...
1
vote
1answer
139 views

Set if condition with wp_nav_menu

I have created one new menu and add bellow code in footer.php to display my menu wp_nav_menu( array('menu' => 'footer-cn', 'menu_id' => 'nav', 'menu_class' => 'ft-nav' )); Currently I did ...
0
votes
1answer
25 views

is_single(); Question

If a page would contain this code: <?php if( !is_single('') ): ?><div id="navtoggle"></div><?php endif; ?> But regardless of it would show the div navtoggle, would that mean ...
0
votes
1answer
168 views

Hide certain pages / posts on wp-admin, show custom filter

I'm integrating a separate ecommerce CMS into a wordpress theme, using page templates for some pages such as the basket, search and checkout pages. This is working out pretty well so far. However, ...
0
votes
1answer
31 views

Pulling posts tagged with similar title name

I'm trying to pull in posts in a page that are tagged with the same page title. For example, if the page is called Banana Pants, then I can call all associated posts manually like this: <?php ...
0
votes
1answer
183 views

Custom Filter using meta_value in wordpress admin list not working

Hello I was trying to filter the pages using a custom filter in admin post listing of wordpress, but after selecting in the dropdown it returns nothing like its just showing all the posts and the ...
0
votes
1answer
73 views

how to change the permalink to a specific location?

I have this slider on my front page. Right now when I click on an image it goes directly to the permalink and the post. How do I make all the slides go to one specific page? this is the loop for the ...
-1
votes
1answer
59 views

How to make posts appear under pages

I have created pages for my website, however when i create a new post, it is not assigned to any page and i am missing the option to place it under a certain page. For example i have a menu like Home ...
0
votes
1answer
35 views

Showing recent post of category in page

Any ideas, how I should do this: Recent post (with comments) shown in page? I need fixed url example.com/question that shows the most recent post, style should be same as in normal one post? Can I ...
1
vote
1answer
27 views

Second comments section for one post/page

For a project, I need to have 2 comments sections related to the same post/page. Is there a way or a plugin to do that ? By default, Wordpress allow only one comment section for one post/page. Thanks ...
0
votes
1answer
321 views

Dashboard--> All Pages “How to create folders?”

I have going on three pages in All Pages on my Dashboard. Is there a way I can set up folders for these pages - - it's becoming a confusing "mess" to find which page I need to update when - for ...
1
vote
1answer
152 views

Personal page for every user (not just authors)

I've got a page displaying all WP users using get_users() and get_userdata(). I need an individual user page automatically (with its own slug) generated for each new user added. I'm a bit clueless ...
1
vote
1answer
82 views

Can I use images as anchor tags with <?php previous_post(); ?><?php next_post(); ?>

Rather than displaying the title of the next page, I would like to display a large arrow that can be clicked on. To do this I shall either be using image files, or the tag. Can this be done?
0
votes
1answer
32 views

Pages with posts filtered by category

My site has a few categories, such as "business", "techology", "news" etc. I'd like to display the latest posts from most categories on the front-page, except for a few special ones which I can ...
0
votes
1answer
171 views

HTML Inside of Shortcode Breaks Shortcode Output

Lots of Googling has still not yielded a solution. Here is the problem: I have created a custom Wordpress shortcode to use inside my Thesis theme. The goal of the shortcode is to allow users to wrap ...
0
votes
1answer
59 views

How to list a page tree?

I have this structure for example: Page 1 Sub-Page 1.1 Sub-Page 1.1.1 Sub-Page 1.1.2 Sub-Page 1.1.3 Sub-Page 1.2 Sub-Page 1.2.1 Sub-Page 1.2.2 Sub-Page 1.2.3 Page 2 ...
0
votes
0answers
38 views

Can i duplicate pages created via plugin?

I have a custom built plugin which generate event pages, now my client wants the event to copy.. how can i copy the page generated via plugin. I have used plugins available but they only work with ...
4
votes
2answers
272 views

Can I display the widget admin in the page admin?

I would like to show the 'Appearance -> Widgets' menu underneath the text field in 'Pages -> new/edit'. Is it possible to take one part of the admin and show it elsewhere? Reading some of the ...
0
votes
1answer
35 views

Display a different image for each page with editor

We have several PAGES (about us, contact, services, etc...) On each page, we have an area for an IMAGE. The IMAGE is located in the same location on each page. (lower right corner > above the ...
1
vote
1answer
22 views

Let me choose permalinks

I need to pick a permalink called 'mysite.com/1418', but wordpress keeps adding '-2' to the permalink. Normally this means i already have a page called the same that is in the trash or something. But ...
0
votes
1answer
127 views

Changing permalink name redirects to another template?

I'm creating a template with a few templates with names page-contact.php, page-portfolio.php and page-blog.php. The problem is that when I select a Defaul Template for a page (I expect it to open ...
1
vote
1answer
17 views

Wrapping images in tags based on size

I am making a site for a client where all the thumbnails on a page need to be styled differently than regular sized images. Right now I have a snippet of code I found that allows me to wrap every ...
0
votes
0answers
117 views

Get Next/Previous (Sibling) Top Level Parent Page Id - Wordpress

Question: Is there any possibility to get next/previous page id in wp_nav_menu in wordpress. Example: I have navigation menu like this Menu_Item_1 (ID = 5) >SubMenu_Item_1-1 ...
0
votes
0answers
50 views

wp_list_bookmarks(); not displaying anything

Bizzarely, I can't get the wp_list_bookmarks(); function (inside a page template) to render anything. Hope somebody can point out something obvious! Cheers. Here's my code: <?php /* Template ...
0
votes
1answer
17 views

Post Fetching Ignoring Sort_Column?

I am using the code below subpages for my portfolio. For some reason, it seems to be ignoring the ordering I have set on my pages. Any help? <?php $args = array( 'post_type' => ...
-1
votes
1answer
63 views

How to read a page's “Shortcodes” from the Template File?

Lets say i have a Page, and it contains some shortcodes like: [myshortcode foo="bar" bar="bing"] [anothershortcode foo="bing" bing="bar"] Then how do i read those from my custom Template File, to ...
1
vote
2answers
108 views

Remove pages from backend list *and* update counter accordingly

I hidden some pages using 'parse_query' hook, but the count for 'Published' pages didn't changed... Where I should hook to change it? My code so far: $query->query_vars['post__not_in'] = ...
1
vote
2answers
203 views

Placing google maps into a wordpress page using the wordpress page editor

I'm creating a website for a restaurant, I have working code that does what I want. Displays a map. Under the map, I've a form with two inputs. The first input allows someone to specify where they ...
0
votes
2answers
193 views

Use page template for custom $_GET content

I have a list of products, and I want to be able to click a link and get to a page with more information about the product, which I can do using $_GET like so: $s .= '<p><a ...
1
vote
0answers
274 views

Plugin generated virtual pages

I am currently devloping my first WP plugin. This plugin should generate dynamic pages on the fly if a fixed non-existing URL is requested. This means I want my installation to accept addresses like ...
0
votes
1answer
121 views

Auto add pages to primary menu with functions.php

Is it possible to have new pages automatically added to the primary menu via functions.php? This particular theme will be deployed on a special version of multisite, so the checkbox which is ...
0
votes
0answers
30 views

make a post or page permalink based category

I have two language categories on my site, English and Indonesian. How can I create permalink post or page based on category slug such: example.com/en/page example.com/id/page or ...
0
votes
1answer
41 views

Is it possible to rewrite a page url Without setting the permalinks to Post Name?

Is it possible to rewrite the page url if your page link is for example localhost/wordpress/?p=123 ? Instead of post_name.php?.... (So the first option of permalinks and not post_name.
0
votes
0answers
56 views

How can I hide any submenu item from dashboard menu but still have access to it from direct url

I just want to hide a page but I want to access it by directly entering its url. But I am unable to access that page after remove_submenu_page() function. I get this error: You do not have sufficient ...
0
votes
0answers
11 views

Site Live Database Operations issues

I have a working site on a staging server. The live site is working perfectly, but none of the database operations is working. It doesn't even fire the select query. I have pages in wp_posts tabel ...
0
votes
2answers
118 views

Add text to the bottom of particular pages

I want to add [one_third][responsive] <a href="http://weburl.com/lifestyle"> <img class="aligncenter size-full wp-image-176" alt="courses" src="http://weburl.com/img/buttons/courses.png" ...
1
vote
1answer
165 views

Add class active to static menu

I have a static main menu, but I'd like to add the class 'active' to the menu item in the nav if it is the page, or a child of that page. I imagine it to be a series of something like: if ( ...
0
votes
0answers
21 views

Creating Pages within a secure folder outside the normal wordpress folder

I have a members site where the members material is in a folder in root called secure. Access is controlled by a separate billing company and protected by strongbox. I m re designing the site using ...
0
votes
1answer
50 views

Admin - no Featured image choice in create new/page|post

I am developing a WP theme and I wanted to add a thumbnail/featured image to a new page/post but there is no such option/choice - like it used to be, I am using WP 3.8.1, I did try to turn off all the ...
3
votes
1answer
734 views

Connection lost. Saving has been disabled… (Updating Posts/Pages)

I've been developing for Wordpress for a few years now without any trouble on an old XP/WAMP development server (v1.7.4) but recently have been getting the error "Connection lost. Saving has been ...
0
votes
0answers
63 views

Best way to execute custom page-specific mysql queries

I would like to query a secondary mysql database (not the Wordpress mysql database) with page-specific queries. I've seen many answers / tutorials on setting up a secondary mysql database, like: ...