straussy
Forum Replies Created
-
Forum: Plugins
In reply to: WP Google Maps plugin map not displayingUpdate: this is working but it takes a full minute to load.
Forum: Fixing WordPress
In reply to: Organizing Page Content in Child Theme filesGreat issue resolved.
So, I added ‘category_name’ => ‘news’ to the array and that means that only posts from the news category are displayed.
For the second column, I realize now that <?php the_content(); ?>
<?php } ?> gets the content input on the dashboard for each page.Thanks again
Forum: Fixing WordPress
In reply to: Organizing Page Content in Child Theme filesThanks Michael for your help.
From your answer I understand that I should create the static content as posts and get each one from the database.
I tried your code and the most recent post is displayed in the first column ‘Upcoming Events’ but nothing is displayed in the second column.
Is there a way to get only posts from the ‘news’ category for the ‘upcoming events’ section (on every page) and posts that correspond to the page they are on for the second section i.e. admissions post on admission page, timetable post on timetable page?
Forum: Fixing WordPress
In reply to: Replace site title in menu with logo in child theme.It was my error. The code above works fine, just my image title was wrong.
Forum: Fixing WordPress
In reply to: Error: Call to undefined function get_header() in child themeIt turned out that the error was with a url in the custom link in the menu. I had put the full url in where it was not needed.
So, thanks for the help sorting this out.
Forum: Fixing WordPress
In reply to: Error: Call to undefined function get_header() in child themeJust found the answer to the last question.
In the settings section, both wordpress address url and site address url are set to http:/localhost/mysite/wordpress.
Forum: Fixing WordPress
In reply to: Error: Call to undefined function get_header() in child themeThank you so much for your help jc62.
You are right, I didn’t change the wp_nav_menu() code at all. I just changed other code in the header.
Ok, I switched to the _tk-master theme, changed the menu custom links in the dashboard but when I click on the home link I get the 404 page not found message. In the debug log it is the same get_header() error as before.
I am using apache on xampp. I get a php error message and a warning like this:
https://pastebin.com/nNdMHJzCHow could I rule out a wordpress address url or site address url error?
Forum: Fixing WordPress
In reply to: Error: Call to undefined function get_header() in child themeThanks for your reply.
Yes I have followed codex when creating the child theme.
I also tested it with the parent theme and got the same error message.
I have since done a fresh install of WordPress in case it was a problem with that.
I was putting the child theme back together and debugging along the way. Once I had added the home page to the menu and tried the link, I got the same error message.