WordPress.org

Ready to get started?Download WordPress

Forums

Press, News, Events
[resolved] Setting up webpage to show news stories (11 posts)

  1. tms2011
    Member
    Posted 2 years ago #

    How do you create a page (like the main blog posts page) to display all of the press releases or news stories you create with this plugin?

    http://wordpress.org/extend/plugins/press-news-events/

  2. mattdeclaire
    Member
    Plugin Author

    Posted 2 years ago #

    The plugin can optionally create archives for each of the post types. Check out the settings page in the admin: Settings -> Press, News, Events. As long as you have a box checked in the "Create an archive page for:" section, you'll get an archive page at either /press-releases/, /news/ and/or /events/.

    Additionally, the /events/ archive only shows upcoming events. Past events can be found at /events/archive/.

  3. tms2011
    Member
    Posted 2 years ago #

    Thanks Matt. I managed to work this out on Friday afternoon and so have been able to upload my press releases.

  4. trevord333
    Member
    Posted 1 year ago #

    Are there any shortcodes to these pages or post?

  5. mattdeclaire
    Member
    Plugin Author

    Posted 1 year ago #

    I'm not quite sure what you mean when you say "shortcodes to these pages". The plugin does define some shortcodes, though. [event-meta], [news-meta] and [press-release-meta], will display custom post type information on a page of that post type.

  6. UHU
    Member
    Posted 1 year ago #

    I have the same question Matt
    I inserted [news-meta] in a WordPress site page to display the news but nothing appeared.
    I deactivated the archive feature but It did not fix the problem.
    The archive page URL/news/ appeared correctly though when activated.

    Also is it possible to show only the first X number of news?

    Thank you

  7. mattdeclaire
    Member
    Plugin Author

    Posted 1 year ago #

    You'll need to use the [news-meta] shortcode on a News page. It's meant to display information about the post that it's on. So, it won't display anything on a regular "Page".

  8. mattdeclaire
    Member
    Plugin Author

    Posted 1 year ago #

    As for X number of news posts, that depends on your template. The number of news items displayed in an archive matches that on any other archive. I believe the number is ten. I will put manipulation of this number of my list of potential features.

  9. rafaelfaria
    Member
    Posted 1 year ago #

    Hi Matt,

    Well, I'm trying to create different pages for each archive. I've manage to create archive-news.php and that works fine for news, but i'm not managing to create a custom archive page for events/past events.

    Would you be able to give me some orientation? I don't really want to know the archive.php instead I would like to create a custom page.

    hope you can help.
    thanks

  10. rafaelfaria
    Member
    Posted 1 year ago #

    How do i set the number of posts per page on the news stories, its default to 10, i want to change it. I'm trying post_limit but it just doesnt work.

    Help anyone?

  11. mattdeclaire
    Member
    Plugin Author

    Posted 1 year ago #

    @rafaelfaria

    regarding archive templates:
    What template filenames are you using for the events?

    regarding number of posts:
    I'm afraid that is out of the scope of this plugin. Here is a link to a tutorial on changing the number of posts for the search page. You should be able to adopt it to suit your needs.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic