Page that ‘subscribes’ to multiple categories

Enable the category taxonomy for your custom post type, or enable it for the default page post type: function wpa_cats_for_pages(){ register_taxonomy_for_object_type( ‘category’, ‘page’ ); } add_action( ‘init’, ‘wpa_cats_for_pages’ ); Then within your page template, get the category IDs assigned to the client page and create a new query which passes those IDs: // get IDs … Read more

Create a new page for each form selection

I can’t comment yet, so I’ll tell you here what you can change immediately: $countryinfo = $wpdb->get_row(“SELECT * FROM wp_num_countries WHERE countryID = “.$country_id); to $countryinfo = $wpdb->get_row($wpdb->prepare(“SELECT * FROM wp_num_countries WHERE countryID = %d”, $country_id)); because you directly use $_POST variable, so $wpdb->prepare will format and prepare your query string. But that code looks … Read more

I need to create a page or post hierarchy

If all you need is to show the hierarchy in the menu, choose Appearance->Menus and build your hierarchy there by using Custom Links. Use # for levels that don’t need to have a page, but use a URL when you get to the bottom level (a page that has content). You can then arrange them … Read more

Cant retrieve $_POST inside page, just header

Were you ever able to sort this out? I’m having the same issue. Best I can tell, somewhere after the save_post fires the $_POST data for that post/form gets trashed. fwiw, what I’m considering doing is doing my validation and then using a post_meta as a proxy for $_POST. In other words, if validation fails … Read more

CSS Styling for a Page/ Site made with Pagelines

The primary stylesheet for a theme is usually /wp-content/themes/themename/style.css. That would be the first place to look. That file has to exist, but may be mostly empty and other stylesheets can be loaded by both theme and plugin. Some themes have very complicated stylesheet structures. The easiest way to find the stylesheets is with a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)