jonathanmorgan
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Lovecraft] Header ImageHi Bobby,
I’ve just created a child theme that does this. You just have to have lovecraft in your themes folder, but activate this theme and the header image will be generated from the Featured Image of the most recent post. Like this: https://changewriter.net
You can download the child theme here.
Best,
JonathanForum: Networking WordPress
In reply to: RSS feeds won't validate in Mailchimp or FeedburnerOk, it turns out that the problem was being caused by a bit of PHP in my header that I was using to redirect visitors according to their language.
Forum: Networking WordPress
In reply to: 2 languages, 2 sites, how to GeoIP?Thanks for your response!
I actually ended up doing it using the Maxmind Geoip database instead.Hi there,
I’m trying to do almost the same thing, except I just want to send visitors from Sweden to https://sv.jonathanandsofia.com, whereas all other visitors would stay at https://jonathanandsofia.com.
I was wondering if you’ve found a good way to approach this?
Thanks!
JonathanForum: Themes and Templates
In reply to: Using Custom Fields with get_pagesFor anyone who finds this later, I couldn’t find a way to use get_pages, so used a second loop on the page with the following code:
<?php query_posts(array('showposts' => 1, 'post_parent' => 32, 'post_type' => 'page')); ?> <?php while (have_posts()) : the_post(); ?> <h5><a href="<?php echo get_page_link($page->ID) ?>"><span><?php the_title(); ?></span></a></h5> <p><?php the_content(); ?></p> <?php the_meta(); ?> <?php endwhile; ?>
And now it’s working as it should.
Forum: Fixing WordPress
In reply to: Half of Dashboard missingHelloooo?! Does anyone actually visit these forums? Or am I just shouting into the dark?
Forum: Plugins
In reply to: Displaying atlernate header.php content on different pagesI finally found my answer – it seemed like whatever I tried it failed to call up a different header. Then I realised that instead of the standard get_header call in the page file I needed to use the:
<?php include (TEMPLATEPATH . ‘/header1.php’); ?>
call instead. It was actually in the wordpress documentation – in the Stepping Into Templates section…
Forum: Themes and Templates
In reply to: different page, different header imageI finally found my answer – it seemed like whatever I tried it failed to call up a different header. Then I realised that instead of the standard get_header call in the page file I needed to use the:
<?php include (TEMPLATEPATH . ‘/header1.php’); ?>
call instead. It was actually in the wordpress documentation – in the Stepping Into Templates section…
Forum: Plugins
In reply to: Displaying atlernate header.php content on different pagesI’m a relative Newbie to WordPress and PHP and was wondering if there was any chance someone could explain the process above a little more fully?
I’m currently working on 2 sites which require different header (specific – not random) images for each page and am trying to figure out the most straight forward way of doing this without having unnecessary multiple page and header templates.
Cheers.