0
votes
1answer
22 views

My php code is not being executed

I have a wordpress page that has this code in the text editor part of a web page: This page creates a cookie and houses a etst link that is only accessible to the holder of the cookie.   ...
0
votes
2answers
42 views

How to set up php,javascript and css to allow for our finished product to be displayed within a page?

hey wordpress experts, We have coded a table using php, javascript and css which pulls up information from a text file and displays it in the browser. We have everything working as desired when we ...
0
votes
1answer
22 views

WordPress Search

I'm trying to write a search feature on a website of mine, and it seems like it's not pulling in any of the pages, only posts. Below is the code. Search Form: <form role="search" ...
0
votes
0answers
48 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: ...
0
votes
1answer
103 views

List all anchor links on a page

I was trying to make a navigation menu of all the anchor links on a page (similar to wikipedia) but couldn't find out how. I tried to find a plugin that could do it, but they only listed the anchors ...
1
vote
1answer
50 views

Page Automatically Generated from Theme?

I'm running WordPress multisite and would like each site to have a specific page (with pre-loaded content) generated from a page template, contact.php. Rather than go through each site and create this ...
0
votes
1answer
40 views

Show results for multiple page-types

First of all sorry for my earlier post, it was just too confusing, and I asked 3 questions in 1... Okay the code below gets be all the pages with the page type page_library_html_content.php now I ...
2
votes
3answers
97 views

Create WordPress pages with PHP

I'm using MongoDB to store separate data for a WordPress website and need to be able to create pages with the data from MongoDB rather than from manually created pages in the dashboard. I've searched ...
0
votes
2answers
38 views

How to add feature image url in my template file and content as well?

I am making a template page name new_template.php,here i want to add a feature image source. how to add featured image source on this blank page. and when i add featured image then the description ...
0
votes
1answer
49 views

Toolbar Hidden in a Virtual Page

I am trying to create a virtual page, but my admin toolbar is not showing up. This is how I am creating the virtual page: functions.php add_action('init', function() { ...
0
votes
2answers
160 views

Wordpress page content outside Wordpress

I have a strange request. Is it possible to load the content of a Wordpress page in a normal PHP page? For example I want to display the content of the wordpress page 4 in a PHP page that is on the ...
-1
votes
1answer
73 views

How to handle parent and child pages?

I want to list episodes of a series I am making of instructional videos with content. The patent page "series" will list episodes weekly. Ie: episodes 1, 2, etc. I'm thinking to setup a template to ...
0
votes
1answer
784 views

Getting an alphabetic post list with two letters onclick on letter

I have a website in Wordpress and a page with a list with letters like this: A B C D E F G H I ... This shows me all posts with the letter A for instance. That's nice, but I want it to make it ...
0
votes
2answers
234 views

Which file i must edit to define a constant of WP Super Cache?

This WP Super Cache plugin doesn't let my shopcart (using shopp plugin) update when someone add or remove items. There is someone say that i must define a constant define('DONOTCACHEPAGE',1); to ...
0
votes
1answer
103 views

Display selected parts from selected pages on the frontpage?

I'm build a site for my company and want to display four (of my choise) of our special deals on our frontpage. A special deal is a page. I want to grab: Featured Image Page Title Price (taking from ...
1
vote
1answer
63 views

PHP Script within wordpress theme

I have a php script that I'd like to utilize within my wordpress theme. I'd like to restrict access to the page based on users belonging to particular groups so it's important to keep it within ...
0
votes
3answers
488 views

How do I find PHP file that contains content of my page?

Let's say I have created a page in admin dashboard and put some content in it. How I can find PHP file in my hosting file manager that contains that content?
0
votes
1answer
45 views

Adding Media button to only pages

I have created a media button as such: // Create a media button for pages function aisis_page_button_link(){ global $post_ID, $temp_ID, $iframe_post_id; $iframe_post_id = (int) (0 == ...
3
votes
1answer
644 views

Wordpress admin never finishes saving page on site with large page count

I have a Wordpress install with a very large amount of pages (a few hundred thousand), and over time it has gotten to the point where editing a page takes an extremely long amount of time. It would ...
0
votes
1answer
39 views

Trying to put a search page on site

i'm trying to put a search page on my site. I thought it would be simple, but I am having no success. I have put a form in my header.php (which I call in my search.php page (include "header.php")) ...
-2
votes
2answers
1k views

How do I remove blog entries from home page Twenty Eleven child theme?

I have been wrestling with this for some time. I've read the documentation about creating a separate home page and posts page, and so on, and I have managed to create a landing page, and a blog. ...
6
votes
2answers
3k views

Getting only direct child pages in WordPress with get_pages

I am trying to fetch all direct children of a page. But I am getting all children and grand children as well. Any ideas? PHP Source: $args = array( 'child_of' => $post->ID, ...
0
votes
2answers
1k views

How to add a php custom page to Wordpress

I want to create a custom page for my Wordpress blog that will execute my php code in it, whilst remaining a part of the overall site css/theme/design. The php code will make use of 3rd party APIs ...
4
votes
3answers
10k views

Get page content using slug

I'm trying to get page content when I only know the slug string. Is there a function for this, or an easy way to do this or is this a case of doing it via SQL? Thanks very much
0
votes
2answers
377 views

trouble with page_id & highlighting current page

I'm using the below code to highlight the page name/gallery shown when the corresponding link is clicked on. My challenge is that regardless of what link I click, only the very first ...
0
votes
1answer
82 views

Display static pages instead of category, in code

I'm very new to programming and not sure how to go about this. The following code returns 3 category names and feature images and then outputs them on the page. <div id="footer"> <div ...
5
votes
2answers
5k views

Sending the reset password link programatically

I have this manually created page: $user_login = sanitize_text_field( $_GET['user_login'] ); if ( username_exists( $user_login ) || email_exists($user_login) ) { ?> <!--Everything has been ...
1
vote
0answers
153 views

Passing the page ID to a login php script

I'm trying to create a simple registration process which goes like this, A visitor clicks on a link (which is viewable only after entering some information such as name, email, phone etc.) This ...
0
votes
2answers
53 views

How to include custom code on a page that's set to act as homepage?

I have a page called 'home' which is set to be the front of my site, but I'd like it to show the most recent blog post or two at the bottom. I have some PHP that will do this from another site ...
0
votes
1answer
149 views

Need help getting this page nav working correctly

For some reason the page nav doesn't work correctly. It's styled odd on the home page (http://noahsdad.com/), then if you go to a page (say page 2 for instance, http://noahsdad.com/page/2/) you'll see ...
0
votes
2answers
182 views

How do I add my PHP app to a Wordpress page whilst keeping semantic URLs?

I am rebuilding a static website for a client using Wordpress on the main domain- eg domain.com. There is also a directory of members website at directory.domain.com which I was hoping to migrate over ...
0
votes
2answers
247 views

Using the_excerpt() on a page

I've been trying to utilize the PHP excerpt function to call from her recent blog post to post on a main landing page without avail. Any thoughts? <div id="home_news" class="prefix_9 grid_3"> ...
1
vote
1answer
409 views

$post object is null

I am trying to use the $post object from functions.php in my theme however if I attempt to var_dump($post) it returns NULL. Here is my code: function breadcrumb_navigation() { var_dump($post); ...
4
votes
3answers
20k views

How to retrieve the slug of current page?

I am trying to retrieve the slug of the current wordpress page outside the loop. The title of the page returns with wp_title () but how can I get the slug? <li><a ...
0
votes
3answers
1k views

Can a page contain php code?

I am trying to use the following line of PHP code in one of my pages: <input name="from" id="from" value="<?php echo $_GET['from'];?>" type="text" /> But instead of displaying an empty ...
3
votes
1answer
4k views

how to add a .php file to wordpress

I have a php file in my server (say www.example.com/up/up.php). If i access that file through the url, my site says no page found. but i want to call that php file using url parameter. I want to call ...
1
vote
1answer
1k views

Sort query_posts for Parent Pages to menue order or the count?

thanks to a member here i display my Parent Pages in a 2 column grid with title and excerpt. But for some reason i can't figure out how to sort all 5 Pages by the menu order for example or the order ...
1
vote
1answer
520 views

How to hide all child pages with post_query?

i have a page template as start page(home.php). i use a 2 columns grid to display all pages on that home.php with title and excerpt. unfortunately also my child pages are shown and i can't figure out ...
0
votes
1answer
106 views

Pasting this PHP breaks my page. Why?

I tried a few echo commands, and they return properly. Breaking Statement <?php $gallery_ids = $wpdb->get_results( "SELECT gid FROM ".$wpdb->prefix."ngg_gallery ORDER BY gid ASC", ...
0
votes
1answer
305 views

Page load timer?

Ok, so I'm confused as to what's going on here... I've been trying for hours now to get a relatively accurate page load timer setup on my WordPress site, but nothing is working like it's supposed to. ...
0
votes
2answers
194 views

Modify pages widget and make a plugin?

I would like to make a plug-in that adds a widget. I would like it to be based on the current pages widget but add the ability to select either include OR exclude by drop down or checkbox then list ...
1
vote
1answer
564 views

in_category() works in single.php but not in page.php?

I'm using in_category(array) inside The Loop to detect whether a post is categorised into the Discussion category (or has one of a couple of slugs). This works beautifully on single.php but doesn't ...
5
votes
2answers
1k views

How to Remove all Instances of edit_post_link

Can someone please assist with how to remove from my theme, whilst in author mode, the edit_post_link (Edit link), throughout all my pages. Which php files in the Twenty Eleven theme (WordPress v3.2) ...
0
votes
1answer
258 views

What's the best way to include php code in to pages?

I'm currently creating a bunch of (empty) pages and performing conditionals such as is_page('Blabla') on it, which increases my page.php significantly. I'm already using require_once for different ...
0
votes
3answers
1k views

I want Page titles and excerpts to show up on home.php in certain order

In the functions.php, I have the following code added: add_post_type_support( 'page', 'excerpt' ); This allows pages to have excerpts. The reason I want an excerpt is because I want to call only ...
6
votes
2answers
4k views

Any guides on creating custom admin pages?

I basically want to create a table (preferably AJAXified) that lets the user enter a line of information, and be able to add new lines of information, and delete selected ones. I've found this post ...
2
votes
1answer
126 views

Help with a custom page template - listing contents of childpages?

hey guys, I have no idea how to solve the following problem. I'd love to have a page-template that lists all it's child-pages but with the content. e.g. Imagine I have a page called "WORK. And "Work" ...
1
vote
2answers
2k views

class=“parent” for wp_list_pages?

<div class="menu"> <ul> <?php wp_list_pages('exclude=&title_li='); ?> </ul> </div> creates the following output... <div class="menu"> ...
0
votes
3answers
658 views

Listing all sub-pages?

I'm wondering how to write a list of sub-pages of actually visited page. So I have 2 pages and 3 sub-pages for each: Colors [page] - Red [child of Colors - subpage] - Blue [child of Colors - ...