Search the Community
Showing results for tags 'posts'.
-
Hi all, I urgently need some assistance. I would like to create a interactive facebook post, where do I start, there are alot of online based form building sites, but they are not custom enough. I only need some functionality, in short 1.Load a visual post on my fb business page 2. Should work like a poll for example ask 2 questions 3. If answer 1 then send to my fb business page 4. If answer 2 redirect to messenger. Please be so kind to point me to a starting point. Thank you in advance for your help. Thx Le Roux
- 1 reply
-
- posts
- development
-
(and 1 more)
Tagged with:
-
I made a static html, css and javascript website. In subfolder of the site i installed wordpress and made a theme from a static html page which contains blog with news posts. Then i connected it with the rest of the website. I would like to embend 3 latest wordpress posts on my static home page and add style to them. I added this code to my static home index.php page <?php define('WP_USE_THEMES', false); require('vesti/wp-blog-header.php'); ?> <?php $number_of_posts = 3; $args = array( 'numberposts' => $number_of_posts ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent_post ){ echo "<span>".$recent_post['post_date']."</span> <br>"; echo "<h3>".$recent_post['post_title']."</h3>"; echo "<p>".$recent_post['post_content']."</p><br><br>"; } ?> Now i see my 3 latest posts with images and text but i dont know how to style them with CSS. I would like to add style to these posts - to paragraphs and images so i could set desired layout and appearance. And optionally , to shorten the text with "read more" option. Can anyone help me solve this problem? ?