March 20, 200917 yr Hi all I have another request for advice on WordPress... I need to be able to show a small amount of text on all pages, but depending on which page I'm on, the text needs to be different. It's a charity website, with areas for different countries, each with their own set of sub pages. I need to display an amount raised for each country on the countries home page and sub pages. Is there any way anyone can think of doing this? Widgets, plugins, coding? Thanks in advance for any help! /Doug
March 25, 200917 yr Essentially, you just need to add an extra field to the "Edit Post" page in the admin panel and suck that data out onto the page when it's viewed. There is almost certainly a plugin for this, but I don't know it off the top of my head. You are better off asking on the Wordpress forum.
March 26, 200917 yr Author Thanks for replying Zinc I posted the question there, but haven't had much luck with responses yet unfortunately. Meanwhile I'm continuing my plguin search... Any further advice would be much appreciated! Cheers /Doug
March 26, 200917 yr Author Thanks Jmz - looks like a possible solution. I'm hoping to find a solution to have 1 location to update these amounts and then they would show on the appropriate page. So I could put the UK total raised in one box somewhere and this would appear say at the top right of the UK page and all its sub-pages (except the red nose day one). I'll explain further. Here is the page hierarchy with the totals that need to be on each (and and the ones below until a new one is mentioned): # Home - Worldwide Total # About Us # Contact Us # Fundraising # Governance # Press # Privacy Policy # Site Map # Terms and Conditions # Trustees # United Kingdom - UK Total * Charity Focus * Trader Focus * Gallery * Red Nose Day - Red Nose Day Total o Corporate Activities o Gallery # United States - US Total * Charity Focus * Trader Focus * Gallery # Australia - AUS Total * Charity Focus * Trader Focus * Gallery * Bushfire Appeal - Bushfire Appeal Total o Activity o Our Appeal # New Zealand - NZ Total * Charity Focus * Trader Focus * Gallery # France - FR Total * Charity Focus Could I create a page and hide it from the navigation and somehow pull the content to display on the appropriate pages somehow do you think? Having trouble getting my head around it lol I'll have a good look into 'More Fields' Thanks for advice so far! All further ideas welcome! /Doug -EDIT- OK, so, More Fields looks good in the way that I can put a box which lets me choose options on the pages edit area, but I'm not sure how to make those options mean anything. I now have a box which lets me choose which total to put on a page, but I don't know how to make it do anything with anything lol - I think I'm missing something important...
March 27, 200917 yr Author OK, posting again rather than editing because I've come to a solution. Thought I'd post my way around my problem in case it's useful to anyone... I'm using a plugin called Page Excerpt to let me add excerpts to pages and using: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="total"> <?php the_excerpt(); ?> </div> <?php endwhile; endif; ?> I have added the excerpts where I want them and styled as I see fit. When it comes to editing them all at once rather than going through page at a time, I've gone about it a bit backwards, but it works. Using this Search and Replace plugin, we can easily change the relevant amounts when needed throughout the excerpts only. So, maybe not the best solution, but it works until we find something better! Cheers for advice / pointers! /Doug
Create an account or sign in to comment