ceco
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Get title for specific postok, thanks to all, I finally got it. It is just like above.
Forum: Fixing WordPress
In reply to: Get title for specific posthow do I insert it inside a
<?php else: ?>what I’ve got is:
<?php if($show_thanks): ?> Thank you. <?php else: ?> Submit your details below to be entered into <?php echo $title = get_the_title(414); ?>Forum: Fixing WordPress
In reply to: Get title for specific postyes!! thank you both. It was looking at my face
<?php require('wp-blog-header.php'); ?> <?php echo $title = get_the_title(414); ?>Forum: Fixing WordPress
In reply to: Get title for specific postI still don’t get anything, not even the 414
Forum: Fixing WordPress
In reply to: Get title for specific postsorry, my mistake. it should be
require('./wp-blog-header.php');i’ll try that now
Forum: Fixing WordPress
In reply to: Get title for specific postyes, I was!
Blepoxp, Is this the right syntax
<?php require('./wp-blog-header2.php'); ?> <?php echo $my_id = 414; $post_id_414 = get_post($my_id); $title = $post_id_414->post_title; ?>because I get nada
Forum: Fixing WordPress
In reply to: Get title for specific postThe reason is that the header contains elements like the menu. I would like to make this page stand-alone. Is it possible to save header.php with another name and strip it to the minimum and then link it to this page like:
require(‘./wp-blog-header2.php’);
so I can then use wp functions.
Is there another way to be able to use the wp functions?
Forum: Fixing WordPress
In reply to: Get title for specific postthanks for that otto42 and blepoxp. I don’t want to use the header for this page in particular. The connection to the database is in place as I’m trying to create a form and the input goes to the db.
Anyway ’round this?Forum: Fixing WordPress
In reply to: Get title for specific postNot sure how to use the_title or if that’s what I need.
I have a page with text and I would like to dynamically insert whatever the title (or body for that matter) of an specific post is. I should mention that post 414 is in wordpress but the page I’m trying to create isn’t run within wordpress although it’s in the same folder as the wordpress files.