Making a wordpress page the index on the site?

yes, it’s a simple setup in your wordpress settings, so, go to your Admin area => Settings => Reading and select to use a Static Page as a Front Page, from the drop down menu select the page you want to use and put inside the content you want/need, just don’t put a Loop inside.

add new metabox to page editor with just page parent

Did just that for one of my plugins, recently… function render($post) { $pages = wp_dropdown_pages(array(‘post_type’ => ‘page’, ‘exclude_tree’ => $post->ID, ‘selected’ => $post->post_parent, ‘name’ => ‘parent_id’, ‘show_option_none’ => __(‘(no parent)’), ‘sort_column’=> ‘menu_order, post_title’, ‘echo’ => 0)); if (!empty($pages)) { ?> <p><strong><?php _e(‘Parent’) ?></strong></p> <label class=”screen-reader-text” for=”parent_id”><?php _e(‘Landing Page’) ?></label> <?php echo $pages; ?> <?php } … Read more

Relative instead of absolute links in pages?

There is a filter, post_link, that permalinks pass through before being returned from get_permalink in wp-includes/link-template.php. You can use that filter to alter the links. However, beware that making all permalinks relative may have unintended consequences in certain contexts, e.g. you might not want relative links when is_feed() == true. You may find that the … Read more

Job Manager plugin help?

the plugin creates a page on activation named “Job Listing” so go to settings >> reading >> Front page displays: pick “A static page (select below)” and for “Front page: ” select “Job Listing”.

Creating a 3-column layout on a WordPress Page

I suggest using the Advanced Custom Fields plugin for this. You can use it to add other entry fields to a post type (in this case, you’d probably want to add it to the Page type). In your case, you would probably want two other Wysiwyg Editor fields so you can write with formatting. The … Read more

How do I pass data from page content to the underlying PHP template

If you want to produce a page in WordPress whose structure and content are dynamically generated independent of the regular posts handling mechanism then: Create a new page with title “My Custom Page“. This generates the page slug ‘my-custom-page‘ by default. In the root of your active theme folder eg. \wp-content\themes\twentyeleven\ create a page template … Read more

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