how to display only description in wordpress home page - wordpress

I am using wordpress for my blog.
I used the some pluging to add meta data for each post.
Whenever I add the new post, the home page displaying entire article. Instead of that I want to display only description or small portion of the article in the home page.
Could anyone help me how to display description of the post only in home page.
Thanks in advance.

Use the more tag, as simple as that. Read more: http://en.support.wordpress.com/splitting-content/more-tag/

In your index.php (also could be in a separate file like, loop-content or so if your template used get_template_part function), there is a function call, like
the_content()
just change it to
the_excerpt();
and you are done. Read more on Codex.

Related

Can the "Recent Posts Widget with Thumbnails" plugin in WordPress link to external URLs?

I am creating a WordPress site which has a menu on the home page, which was created with the plugin mentioned above. This menu is comprised of posts from my site, which should each link to an external URL.
The problem I'm having is that when I click on the post in the menu, it redirects me to the WordPress permalink, instead of the external URL I set for the post. Clicking on the posts on any other part of the site takes me to the external link, as I expected.
Any help would be much appreciated!
The plugin I am using: https://wordpress.org/plugins/recent-posts-widget-with-thumbnails/
The problem is that "Recent Posts Widget With Thumbnails" doesn't provide any way to overload the template used to display the widget. The permalink is displayed in includes/widget.php template (not overridable) on line 20:
?>><a href="<?php the_permalink(); ?>"<?php echo $link_target; ?>><?php
You have two options here:
Change that line to display the meta used by Themify to display the external link. This is not recommended because you won't be able to update the plugin (or if you do, it will break your modification) and this could end in a a possible security issue.
Just do what the plugin does yourself. It's not that difficult.
You'll just have to edit your home page template (front-page.php or index.php, depending of how you set Wordpress about this), and use get_posts to query the last posts:
$last_posts = get_posts('posts_per_page=5');
And display them using the_post_thumbnail for the thumbnails. You can use the template from the plugin and change it to your need.

Display content from other pages on wordpress home page

I want to display the content from different pages on my wordpress home page in a way that it displays an image, page heading and some content with the link to that page. Any help is appreciated. If there is any plugin available please let me know that. Sorry to all the pros, i am, just a beginner in wordpress. I have attached an image too of what i am, looking for.
Thanks and Regards.
I suggest you use post instead of pages and than display those posts in you home page.
I would suggest using the plugin Advanced Custom Fields on one page or post, and then pulling them onto other pages in the template(s) using this line:
<p><?php the_field('your_field_name', 123); ?></p>
The "123" is the page ID of where your content is. It can be found in the URL when you're editing a page/post. Then you only have to edit one page, and it will change on all pages that you wish to display it on.
Plugin Website: http://www.advancedcustomfields.com/

Wordpress - Editing the end of every blog post

What file do I need to edit in wordpress to change the bottom of every blog post?
So if I wanted to add social media buttons to the bottom of each of these blog posts.
http://angeloesposito.com/view/blog/
Thank you,
Art
You can use plugin to do that just search for "wordpress social buttons plugin" in google or you will have to edit more than one file to change the desing of the posts and will have to go to every social network so i guess is better to use a plugin :)
Actually - single.php is the page that renders blog posts. loop.php will be template specific, and wont appear in all templates and Evan's answer doesn't technically answer what you asked.
So anyone searching - single.php in your template folder is the file that renders your single blog post page. to add something after the blog post add it directly after the_content()
Some posts will reference loop.php (including the default template) - in there you'll find the_content()
loop.php I think is what you're looking for

How to add a link in wordpress theme and manage that link's url from content managed post?

I have a hard-coded link in my Wordpress theme but I need for the link to be able to be managed from within a Wordpress post. How can I go about pulling the link url, from a post (or something similar which is content managed) and put that into the link?
Many thanks!
Use a custom field in the post page. You can retrieve it using get_post_meta() in your theme. Example, assuming you are in the loop!
$custom_link = get_post_meta($post->ID,'custom_link',true)

Can't get wordpress feed to display full article

This is probably going to be a really simple fix... I just can't figure it out.
I want to display the posts from a wordpress category on the following page: http://www.oe-design.com/about-press.php?test
I've managed to do so but when I show the 'description' on the page (my code: $item->description), it only shows a snippet of the article, not the full article...
What do I need to use to show the full article?
I am trying to view the wordpress RSS feed but when I view it in FireFox it asks me to subscribe so I can't actually view it and see what I need to do to view the full article. Safari shows their own custom feed layout...
Hopefully I am making sense
Your feed doesn't have anything to do with displaying the full article or the excerpt on your category page. Change <?php the_excerpt();?> to <?php the_content();?> in your theme files, like category.pgp, single.php, etc.

Resources