MichaelH
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Determine which sidebar to loadWell using the WordPress Default 1.6 theme (the old Kubrick theme) I created a sidebar-menu.php template file (with a difference from sidebar.php) then in the index.php file changed
<?php get_sidebar(); ?>to
<?php $menu='menu'; get_sidebar($menu); ?>and it used the sidebar-menu.php file.
Forum: Fixing WordPress
In reply to: Displaying child pagesThen wouldn’t you’d need to put the div section outside the
if ($page->post_parent == $post->ID) {construct?Forum: Fixing WordPress
In reply to: Displaying child pagesJeesh another one
if $counter == 1 {should be
if ($counter == 1) {Forum: Themes and Templates
In reply to: Admin LoginThe wp-login.php is expected to be in the WordPress ‘root’ folder.
If you are trying to customize a login look at plugins such as:
http://wordpress.org/extend/plugins/cimy-user-extra-fields/
http://wordpress.org/extend/plugins/memphis-wordpress-custom-login/Forum: Networking WordPress
In reply to: Maximum number of domains that can be added to multisite?Well wordpress.com (which uses multisite) has millions of sub-domains and domains so don’t think you will have a problem.
Forum: Themes and Templates
In reply to: How to return posts belonging to multiple categories?Look at using category__and
See http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters
Forum: Fixing WordPress
In reply to: Determine which sidebar to loadAre you using the correct names for your sidebar templates?
Should be:
sidebar-menu.php sidebar-arrangements.phpForum: Fixing WordPress
In reply to: Display posts from one category onlyYes, you would need to create the proper template (as defined in Template Hierarchy) in your child theme folder.
Forum: Fixing WordPress
In reply to: Posts Page – ignoring page templateFrom Administration > Settings > Reading
Posts page – Select in the drop-down box the name of the Page that will now contain your Posts. If you do not select a Page here, your Posts will only be accessible via other navigation features such as category, calendar, or archive links. Even if the selected Page is Password protected, visitors will NOT be prompted for a password when viewing the Posts Page. Also, any Template assigned the Page will be ignored and the theme’s index.php (or home.php if it exists) will control the display of the posts.
Forum: Fixing WordPress
In reply to: exclude codes from different pages? how?Didn’t test this, but you could use something like the php in_array to test that condition:
<?php if(function_exists('the_views')) { if ( !in_array($post->ID, array(5,12,40,50)) ) { //if NOT in array the_views(); } } ?>Forum: Fixing WordPress
In reply to: Displaying child pagesOops, well at the very least
if $page->post_parent == $post->ID { // is this page a childshould be
if ($page->post_parent == $post->ID) { // is this page a childForum: Installing WordPress
In reply to: Fatal Error after updatingThat sounds like a very low PHP memory setting as WordPress will try to set 32M for the amount of memory PHP can consume.
I wonder if your host has done something or there’s a low memory setting in your wp-config.php file such as
define('WP_MEMORY_LIMIT', '6M');or there’s a lowWP_MAX_MEMORY_LIMITin that same file?Forum: Fixing WordPress
In reply to: Displaying child pagesDidn’t test but you could use something like this:
before your foreach put
$counter=0;then in your foreach loop
if $page->post_parent == $post->ID { // is this page a child $counter++; if $counter == 1 { //do your h2 thing here } else { // do your div thing here } }Forum: Fixing WordPress
In reply to: Display posts from one category onlyReview Template Hierarchy and make sure you are using the correct category ID. Also see Stepping Into Templates
Please note WordPress will naturely provide category archives without special coding.
Forum: Themes and Templates
In reply to: Display Posts in Category on a PageWordPress does that natively when using something like the Category Widget, but assuming you don’t like that solution, look at http://codex.wordpress.org/Pages#A_Page_of_Posts