Loop after page content

Updating a theme isn’t that hard. But it’s necessary to let it play nice with the current version of the core. Here’re some notes on what you might need to do: Query Templates Post Thumbnails & featured images The query Nowadays, we’re using get_posts() or new WP_Query for such cases, where you need to do … Read more

Visiting Webpage ONLY after another page was visited. Possible?

You could set a cookie upon contact form submission, then check for the cookie on /page2. If it is not found, wp_safe_redirect() back to /page1. Setting a cookie – You will need to hook into Contact Form 7’s submission – look into their documentation: <?php setcookie( ‘my_cookies_name’, true, 0 ); // This cookie will expire … Read more

Use lots of pages, or categories/posts?

There are a few possibilities to solve this. The first one, with taxonomies (categories), is not very usable because of the interface to set the category for the accomodation. Additionally, you will have a lot of duplicate categories, as every city will need a subcategory like hotel, b&b, … Because of this the Searchfunctionality for … Read more

Display content of page template (get_page)

You seem to be confusing the database object that is a post/page, and the rendered output that is a post/page. The data contained in the wp_posts and wp_post_meta tables define the post object. A template file defines the rendered output when a given database object is queried. There are three types of queries: the default, … Read more

Create subpage – filter parent pages list

Not sure if this will help, but I have used the code on the following page to add a parent page filter to the list of pages: http://www.finalwebsites.com/add-a-parent-pages-filter-function-your-wordpress-admin-section/ Very handy if you have a parent page for each section. There is just one problem – it only returns the children not grandchildren etc. I am … Read more

Creating a form contact page?

Probably the theme is using a page template. When you create a Contact page, on the right side, look for “Template” and select the Contact page template from the drop down menu.