WordPress.org

Ready to get started?Download WordPress

Forums

News Manager
[resolved] Display news on Page. (14 posts)

  1. ahmadjan
    Member
    Posted 7 months ago #

    Hi there,
    Thanks for the great Plugin. Right now I am using widgets to display the news. But I want to know that how can I put my News Posts to any specific page... ?
    Thanks.
    Best Regards.

    http://wordpress.org/plugins/news-manager/

  2. dFactory
    Member
    Plugin Author

    Posted 7 months ago #

    @ahmadjan, there are plenty of options to do so, but the best way would be to use http://codex.wordpress.org/Class_Reference/WP_Query on a page template. Here's an exemple of how this can be achieved for posts: http://digwp.com/2013/01/display-blog-posts-on-page-with-navigation/

    News is just "news" post type, so any WordPress query functions will do here.

  3. ahmadjan
    Member
    Posted 7 months ago #

    Thanks alot "dFactory" Its solves my Issue!
    Great!

  4. ahmadjan
    Member
    Posted 7 months ago #

    Hi there,
    Sorry to again bothering you. There is a problem. I did as your suggested solution. Its not displaying my news posts. It displays only default posts. Only widget shows my news posts.
    main widget area News & Events.
    http://www.kohsarconstruction.pk/kc/

    and This is News page where I've added your suggested solution.
    http://www.kohsarconstruction.pk/kc/?page_id=249
    also see this from category view.
    http://www.kohsarconstruction.pk/kc/?cat=15

    Thanks.
    Best Regards...

  5. dFactory
    Member
    Plugin Author

    Posted 7 months ago #

    Please google any basic tutorial on using wp query, get_posts() function and/or displaying custom post type on a page.

    Believe me, those are very basic and typical questions concering WordPress in general, not the plugin itself.

  6. Tirthankar Modak
    Member
    Posted 7 months ago #

    @dFactory

    can u tell me nay shortcode or php code for showing news in home page.

    Or i have to use the widget by default ???

  7. ahmadjan
    Member
    Posted 7 months ago #

    @dFactory
    Yes You are right. I got that functions and now it works. Many Many Thanks. Great Plugin.

  8. Tirthankar Modak
    Member
    Posted 7 months ago #

    @ahmadjan

    r u using get_posts() function for getting news ??

  9. ahmadjan
    Member
    Posted 7 months ago #

    @Tirthankar Modak

    Yes I'm using get_post() is_single() for other pages. and for Homepage Im using default widget of plugin.

  10. Tirthankar Modak
    Member
    Posted 7 months ago #

    Okay if i use widget then all news will come smoothly ?? am i right ?

  11. ahmadjan
    Member
    Posted 7 months ago #

    Yes u r right. There are several option in widget you may use. try to explore all the settings of plugin.

  12. Tirthankar Modak
    Member
    Posted 7 months ago #

    Thanks man .. :-)

  13. AuroreS
    Member
    Posted 7 months ago #

    How did you get to display the news post? I was able to set up the general page "news" correctly http://acsbe.asso.fr/news/ but when I click on a news title I get this error message : http://acsbe.asso.fr/news/lorem-ipsum/

  14. indosta
    Member
    Posted 4 months ago #

    But there is a schortcode that I can see al the news in a page. Without the solution get_post()...(I'm not a pgrorammer).
    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic