bluegum
Forum Replies Created
-
Forum: Plugins
In reply to: [FS Contact Form] The CAPTCHA refresh image doesn't workAfter placing <?php wp_footer(); ?> into the footer.php, it refreshed without any problems.
Forum: Fixing WordPress
In reply to: Shortcodes in the functions.php file not workingI have finally worked out why my shortcode wasn’t working. The solution is what I had to change in the page.php and then I made some adjustments to the code in the functions.php. The code I placed in the page.php is:
$home_page_id = 53; $home_page = get_page($home_page_id); $content_page = $home_page->post_content; $content = apply_filters('the_content', $home_page->post_content); echo $content;And in the functions.php I adjusted the code to:
function contactus() { $contactus_page_id = 26; $contactus_page = get_page($contactus_page_id); $content_page = $contactus_page->post_content; $content = apply_filters('the_content', $contactus_page->post_content); return $content; } add_shortcode('contactuscontent', 'contactus');Forum: Fixing WordPress
In reply to: Shortcodes in the functions.php file not workingPlease someone help me with this.
Forum: Fixing WordPress
In reply to: Showing multiple pages in the page.php, finding the linkKevin Muldoon wrote: You can do 5 loops within your index.php template. Instead of just showing blog posts you could specify 5 pages you want to display using wp_query. Then just link to each section using identifiers.
Thanks that sounds good, but as index.php should act as an intro page with a series of logos going off to different websites, how would it work for page.php? Or could I place the code for the logos links (to be edited by my client), along with the code you mentioned for the index.php?
Forum: Fixing WordPress
In reply to: Showing multiple pages in the page.php, finding the linkI think maybe if I can create the code (is one of many) which is below into a shortcode I might be right. I can just place the shortcode into a page to be created in WordPress via the Pages section, but after adjusting the code below and placing that into a function.php file.
$latestedition_page_post_id = 40; $latestedition_page_post = get_post( $latestedition_page_post_id, ARRAY_A ); $content_latestedition = $latestedition_page_post['post_content']; echo $content_latestedition;Forum: Fixing WordPress
In reply to: Showing multiple pages in the page.php, finding the linkPlease someone please help me I am trying to meet a deadline here.
Forum: Fixing WordPress
In reply to: Showing multiple pages in the page.php, finding the linkDo you want a one page design i.e. when a visitor clicks on a link they will scroll down to the next section. Is that what you mean?
Yes, that is exactly what I meant.
Forum: Fixing WordPress
In reply to: Showing multiple pages in the page.php, finding the linkThe subscribe button should go to a pdf.
Forum: Fixing WordPress
In reply to: Showing multiple pages in the page.php, finding the linkOkay I have created a jpg file which contains the website, so please visit this to see the jpg: http://imageshack.us/photo/my-images/864/site1o.jpg/.
Forum: Fixing WordPress
In reply to: Showing multiple pages in the page.php, finding the linkHow come I just received an email saying that the link I posted here doesn’t work, and that reply doesn’t appear here? Anyway I just tested the link after clearing my browser’s cache and it worked for me.
Forum: Fixing WordPress
In reply to: Showing multiple pages in the page.php, finding the linkI think it might be best to post the website address of the one page website without being in WordPress, so people can get an idea of what I am talking about. Here is the site address: countrylivingmagazine.com.au. Please tell me how I can create those sections (About, Advertising, Our Advertisers, Subscribe, Contact), and link to the one page website in WordPress?
Forum: Fixing WordPress
In reply to: Showing multiple pages in the page.php, finding the linkNo, what I am trying to say is that I have a series of pages for the sections within page.php, and am wanting to find the link to the page.php itself. This website is only a one page website, therefore the pages which are created within WordPress are for the sections in the one page site. The link for page.php should go into index.php (which is acting as a intro page for other websites which are yet to come, as well as this one page site). Please help me with this.
Forum: Fixing WordPress
In reply to: Please tell me how I can display the latest pdfOk thanks, my client has a one page website, so now I don’t understand how no php code will display the pdfs. With the one page website, there will be blocks text which belongs to each button. So surely there has to be some way, I have to tell WordPress to display the pdfs in the website.
To display the blocks of text I have created this code:
$about_page_post_id = 10; $about_page_post = get_post( $about_page_post_id, ARRAY_A ); $content_about = $about_page_post['post_content']; echo $content_about;Forum: Fixing WordPress
In reply to: Please tell me how I can display the latest pdfThanks fonglh, but how do I display the latest particular uploaded pdfs (not all of the pdfs which have been uploaded to WordPress) into page.php? It sounds too complicated for my client to replace the pdf file via FTP, who isn’t computer saavy.
Sorry if I sound frustrated and stressed, but I have a deadline to meet here, therefore I need this completed asap, and my client is putting the pressure on me to get this finished.
Here is the code which I have started:
global $wpdb; $attachment_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_status = 'inherit' AND post_type='attachment' ORDER BY post_date DESC LIMIT 1"); $attachmenturl = get_attachment_link($attachment_id);; $attachmenttitle = ; echo '<li><a href="'.$attachmenturl.'" title="'.$attachmenttitle.'"></a>'.$attachmenttitle.'</li>';Forum: Fixing WordPress
In reply to: Please tell me how I can display the latest pdfThanks for that, but my client wants those pdf links to be displayed on his website, and he wants to be able to change the links as he changes the pdfs, therefore I need someone to post some code to be displayed here. So just changing the pdfs by uploading them into WordPress will not do what my client requires.