gerrycircus
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Migrating one wordpress website to anotherI dont think that is a solution I could use for this project topgunscooter – as 1/ thats not great for SEO and 2/ I absoutely detest frames.
There’s only one way to do it in web dev world – and that is the right way. Short hand ways create problems in the future.
Thanks for the suggestions though
Forum: Fixing WordPress
In reply to: Migrating one wordpress website to anotherhey shane
thanks for this – this is pretty much what i thought – but i got a little bit confused when they mentioned about the old blog etc.the way i have it planned is:
http://www.oldsite.com > http://www.newsite.comI will copy DB and all relevant items related to the theme that I have been working on for http://www.oldsite.com (seperate servers).
http://www.newsite.com (already has wp installed on it) so upload the new theme (images, plugins etc), upload the new DB.
This should be it? I’m still not sure that if I upload the DB to http://www.newsite.com will WP automaically generate pages for me? ie if on http://www.oldsite.com I had 20pages will they come across when i update the DB on http://www.newsite.com
Forum: Themes and Templates
In reply to: custom fields get_post_meta questionhey peter
you got me thinking! i was focussing on the scripting. I updated my version of WP to the latest (just in case) and deleted all my previous entries for custom fields. I re-inputted them and it’s working!
Thanks for that!
Forum: Themes and Templates
In reply to: custom fields get_post_meta questionHi Pboosten! Thanks for taking the time out of your day to help me.
the custom field entries from the back-end are called:
“artist-image” (this is working)
“website-address” (this throws an error)
“myspace” (this throws an error)The problem is when I try to ADD a custom field in the backend of WP it says “An unidentified error has occured”.
Forum: Themes and Templates
In reply to: custom fields get_post_meta question<!-- I NEED TO POST AN IMAGE FROM THE IMG and THEN TWO SEPERATE LINKS BELOW - 1/ IMAGE 2/ WEBSITE 3/ MYSPACE URL THE IMAGE PART IS WORKING AND THE BACKEND OF WORDPRESS REGISTERS THE FACT THAT ARTIST-IMAGE IS THERE --> <div class="artist-details"> <?php $artistimageCode = get_post_meta ($post ->ID, 'artist-image', true); $websiteCode = get_post_meta ($post ->ID, 'website-address', true); $myspaceCode = get_post_meta ($post ->ID, 'myspace', true); ?> <img src="<?php echo $artistimageCode; ?>" width="200" height="250" alt="music box for life artist" /> <?php echo $websiteCode; ?>" /> <?php echo $myspaceCode; ?>" /> </div> <!-- artist details close --> <!-- ARTIST CLOSE -->Forum: Themes and Templates
In reply to: custom fields get_post_meta questionI tried that and it’s still not working. Here’s my latest effort:
<!– I NEED TO POST AN IMAGE FROM THE IMG and THEN
TWO SEPERATE LINKS BELOW –1/ IMAGE
2/ WEBSITE
3/ MYSPACE URLTHE IMAGE PART IS WORKING AND THE BACKEND OF WORDPRESS REGISTERS THE FACT THAT ARTIST-IMAGE IS THERE
–><div class=”artist-details”>
<?php
$artistimageCode = get_post_meta ($post ->ID, ‘artist-image’, true);
$websiteCode = get_post_meta ($post ->ID, ‘website-address’, true);
$myspaceCode = get_post_meta ($post ->ID, ‘myspace’, true);
?><img src=”<?php echo $artistimageCode; ?>” width=”200″ height=”250″ alt=”music box for life artist” />
” target=”_blank” />
” target=”_blank” />
</div>
<!– artist details close –><!– ARTIST CLOSE –>
The forum is not displaying my code properly
I am essentially placing the php echo where the href path would be. Not sure why it doesnt display here.
Forum: Themes and Templates
In reply to: Navigation on-statehey! I think I have it………….. nearly!
Here’s the mark-up code i have in the header.php:
<div class=”menu-bar”>
<ul class=”nav”>
<li class=”default”>HOME
<li class=”design”>DESIGN
<li class=”music”>MUSIC
<li class=”profile”>PROFILE
<li class=”portfolio”>PORTFOLIO
<li class=”links”>LINKS
<li class=”contact”>CONTACT</div>
The CSS for it:
body#portfolio ul.nav li.portfolio a,
body#design ul.nav li.portfolio a,
body#music ul.nav li.portfolio a,
body#default ul.nav li.home a,
body#links ul.nav li.portfolio a,
body#about ul.nav li.about a,
body#contact ul.nav li.contact a{ background: #d10101; color: #ffffff; }This is the PHP I have that I’m trying to get to work:
<?php
$page = $_SERVER[‘REQUEST_URI’];
$page = str_replace(“/”,””,$page);
$page = str_replace(“.php”,””,$page);
$page = $page ? $page : ‘default’
?>
<body id=”<?php echo $page ?>”>Forum: Themes and Templates
In reply to: Navigation on-statehey – my php knowledge is minimal – sorry.
but if i place an id on the body – that id will be generated and used on every page (ie pointless). I want to be able to have a different id for every page so i can effect a “current” or “on-state” for usability.
this is the URL
http://74.86.66.197/~threedes/