Giter Site home page Giter Site logo

issuem's Introduction

=== IssueM ===
Contributors: layotte, pericson, endocreative
Tags: issue management, issue manager, magazine management, magazine manager, news management, news manager, periodical manager, periodicial management, publishing, magazine publishing, issue publisher, wordpress magazine
Requires at least: 5.6
Tested up to: 6.4.2
Stable tag: 2.9.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Create, Organize, and Publish Issues with WordPress

== Description ==

**"...IssueM is a real standout." — WPMU**

[IssueM](https://leakypaywall.com/issuem/) is one of the cornerstones of the leading WordPress platform for publishers.

IssueM turns WordPress into a powerful publishing platform for digital issues. Popular with alumni magazines, trade magazines, news sites, science journals, and other publishers of periodicals, IssueM brings the proven and familiar issue-based publishing model to the web. There are incredible benefits to the issue-based model of publishing:

1. Publishers love that IssueM's issue-based digital publishing slows the pace of posting to better suit their existing workflows;
1. And, readers love the long-format, less-frantic, well-organized reading experience.

IssueM is packed with features—and is gaining more with every release! Upon installation, IssueM allows publishers to:

* Create issues
* Create articles and assign articles to particular issues
* Publish an issue (and all included articles) at one time
* Display past issues on an attractive "Past Issues" archive page
* Display a current-issue article list anywhere on the site using a widget
* Allow readers to search for content across all issues
* Select featured articles to be displayed in a rotating article showcase
* Use WordPress's scheduling ability to schedule and automate the launch of an issue
* Present issues with an attractive ready-to-go (yet customizable) issue table of contents page

Some other benefits:
* IssueM works with any WordPress theme.
* IssueM is backed by the dedicated team of developers and publishers at zeen101.
* IssueM is an active project, with new updates and features released regularly.
* IssueM's developer, zeen101, is committed to providing stellar support.
* IssueM is free.

Issue-based publishing on the web is gaining steam. More and more traditional publishers are learning that using their print version's issue-based publication schedule on the web—as opposed to a running stream of content—is not only not a step backwards, but it is a welcome change for readers who are often overwhelmed by streams of content. As this publishing model grows in popularity, so does the IssueM ecosystem. Currently, zeen101 offers the following add-ons and companion plugins to turbocharge and complement IssueM.

* **[Leaky Paywall](https://leakypaywall.com/)**, when paired with IssueM, makes charging for issue subscriptions simple. Sell subscriptions to your content using any schedule (weekly, monthly, annually, etc.) and price you like. Set your "leak level" to define how many articles readers are allowed to view without a subscription for any time period you set. For example, you can allow unsubscribed readers to read 3 articles per month before a subscription is required. Leaky Paywall also allows you to set limits by content type as well. Leaky Paywall is a paid plugin.
* **[UniPress](https://leakypaywall.com/unipress-apps/)** brings your IssueM issues to iPhone and Android devices as your publication's very own app. Build a stronger relationship with your readers by providing them with a dedicated app that they can have in their pocket every day. All your issues, articles, posts, and pages flow into the UniPress app framework that zeen101 will brand as your magazine, set up, and submit to the Apple and Android app stores. It couldn't be easier. UniPress is available now. (The IssueM integration is currently under development and will be available soon.)
* **[The Issue-to-PDF add-on](https://leakypaywall.com/downloads/issue-to-pdf/)** allows publishers to convert their digital issues into PDFs with the click of a button.
* Want to convert your blog posts into issues? **[The Issue Migration Tool](https://leakypaywall.com/downloads/migration-tool/)** will migrate any post content you choose into article content, so that you can include it into your IssueM issues. Quickly create a special issue or start an issue based magazine or news site.
* If you need more power in your search box, the **[Advanced Issue Search add-on](https://leakypaywall.com/downloads/issuem-advanced-search/)** allows your readers to comb through your content in a way that isn't possible with the standard WordPress content search.

== Installation ==

1. Upload the entire `issuem` folder to your `/wp-content/plugins/` folder.
1. Go to the 'Plugins' page in the menu and activate the plugin.

== FAQ ==

**What are the minimum requirements for IssueM?**
You must have:
* WordPress 5.3 or later
* PHP 7 or higher

**How is IssueM Licensed?**
* IssueM is GPL.

== Screenshots ==
1. Berkeley Science Review - Current Issue
2. Berkeley Science Review - Older Issue
3. Berkeley Science Review - Issue Archive
4. Simmons Field Educator - Current Issue
5. Simmons Field Educator - Issue Archive
6. Einstein College of Medicine - Current Issue
7. Einstein College of Medicine - Current Issue with past issue menu (custom programming)
8. Einstein College of Medicine - Issue Archive
9. Law Practice Today - Current Issue
10. Law Practice Today - Issue Archive
11. IssueM - issue management
12. IssueM - add new article
13. IssueM - plugin settings
14. IssueM - help

== Changelog ==

= 2.9.0 =
* Update display of pdf line in archives shortcode
* Update links

= 2.8.9 =
* Remove external dependencies from plugin

= 2.8.8 =
* Code cleanup

= 2.8.7 =
* Fix pagination on IssueM archives
* Update WP admin menu icon

= 2.8.6 =
* Fix some styles
* Add attributes to do_issuem_archives_get_terms_args filter
* Update html on issuem archive issues

= 2.8.5 =
* Sanitize parameters

= 2.8.4 =
* Add ability for 3rd party plugins to add settings tabs
* Fix index error during post save

= 2.8.3 =
* Display latest issue in widget even if it has no articles attached
* Fix cover image setting on issue page

= 2.8.2 =
* Add admin columns on article for issue, categories, and tags
* Display categories in article list widget even if they are empty
* Fix javascript error that was breaking settings page

= 2.8.1 =
* Fix excerpt filtering when content has oembed
* Add issuem_article_post_type_args filter for adjusting article post type before registering
* Add article taxonomies to post type editor in block editor
* Add issuem_archives_issue_url filter

= 2.8.0 =
* Add fix for issue order
* Add fix for capability error
* Enable block editor support on article post type

= 2.7.4 =
* Add meta value to check for query for featured thumbnails and featured rotators

= 2.7.3 =
* Use media uploader for cover image on an issue
* Fix sorting by issue order in admin table
* Update how article meta is saved during a bulk edit so that options stay
* Add issuem_widget_after_issue_cover filter
* Update admin logo

= 2.7.2 =
* Add filter for statuses

= 2.7.1 =
* Fixing bug caused by using specialy characters in content/excerpts
* Adding arguments to new settings hooks (HT: pressupinc)

= 2.7.0 =
* Updating constructor for PHP7

= 2.6.1 =
* Two action hooks to allow multiple article formats
* Switching split() for explode() for PHP7 Compat
* Fixing typo in issue order check

= 2.6.0 =
* Fixing bug preventing uploads in Issue Taxonomy
* Fixing bug when saving Issue Taxonomy
* Add check to is article page conditional to fix a bug with redirect_canonical

= 2.5.0 =
* Add array keys for option values on issue statuses to fix problem with translations changing the values that were being checked elsewhere
* Add filter for issuem_active_issue_slug
* Add filter for issuem_draft_issue_tax_query ;
* Add filter to pre get posts draft tax query
* Fix header output error in admin

= 2.4.0 =
* Check if currently set post type is a string before adding article to the preferred array type

= 2.3.0 =
* Add aritcles to is_author query
* Remove extra slash in css and js link URLs
* Use explode instead of split to create array of article category slugs
* Use correct variable name issue instead of issuem_issue in the featured thumbs shortcode

= 2.2.1 =
* Modify how we add article to the post query in pre_get_posts

= 2.2.0 =
* Updating WP_Widget calls for deprecated use in WP4.3

= 2.1.0 =
* Escaping add/remove_query_arg calls properly

= 2.0.4 =
* Create add-ons page to showcase available IssueM add-ons from within the plugin
* Add helpful descriptions on the IssueM settings page
* Clean up HTML errors
* Update support links and information
* Add link to settings page from plugin listing page

= 2.0.3 =
* Update styling of article notice and add the ability to dismiss the notice

= 2.0.2 =
* Fixing bug preventing WP Categories from working in the Article List Widget

= 2.0.1 =

* Better verification for clever users who might know what your next draft issue is named, so they can't see it
* Make sure we verify the post exists before setting the content

= 2.0.0 =

* Prepping for IssueM Pro integration!
* Changing feed templates to order posts by menu_order over post_date
* Add default settings for rotator options
* Updating issuem.com links to go to zeen101.com
* Update help page layout and improve documentation
* Add RSS feed to zeen101 to IssueM settings page sidebar
* Update layout of settings page
* Add rate issuem widget to issuem settings page
* Clarify description for Article Format meta box
* Update list of wp contributors
* Add second param to get_issuem_author_name to not output name as a link
* Use the number input for font size inputs
* Update settings notification so it actually displays
* Add tabs to IssueM settings page
* Change issue_url output to only the term slug if use tax links is checked in settings
* Redux of feature image rotator options

= 1.2.12 =

* Setting issuem_issue cookie properly for article views
* Added issuem_issue setting for taxinomical links
* Update support links to point to zeen101.com
* Added link to issue name in the IssueM Active Issue widget
* Added DATE to issuem_replacement_args to get access to post date
* Added function to get the article excerpt by id for use in the featured thumb shortcode when the excerpt need
* Update featured rotator so that caption is clickable
* Added media queries to featured thumbnail layout and clean up font styling from the article list
* Added message to IssueM Article Format section describing what it does
* Update layout and position of IssueM Article Options on edit article page

= 1.2.11 =

* Adding missing code to display PDF link in widget when External PDF Link is not empty and set to display PDF links

= 1.2.10 =

* Fixed readme
* Fixed messed up constant variable name

= 1.2.9 =

* Updating IssueM references to point to zeen101
* Update show_thumbnail_byline variable
* Add title field to IssueM Active Issue widget
* Change object name to article instead of post for the featured thumbnail category list arguements
* Add display thumbnail byline to issuem settings page
* Filter the_content plus... Related to commit 854d12b79c2b7701ad1712fff6f387246ee5a218
* Applies 'the_content' filter to article content
* Changing merged pull request (minor update)
* Update issuem-functions.php
* Customizing Flexslider to deal with conflicting themes/plugins that enqueu their own version
* Fixed activation hook function call
* Move inline css to admin css file'
* Replace file uploader with wp media uploader for default issue image
* Remove toggle arrows from settings boxes
* Add settings sidebar for additional content
* Update layout of settings page
* Fixing responsive issue with captions in flexslider

= 1.2.8 =

* Fixing featured thumbnail shortcode to show categories properly
* Adding filter and CSS class for no articles found message on articles shortcode
* Add getting started video and text to issuem help page

= 1.2.7 =

* Adding Order Direction to IssueM Article Widget
* Adding limit/next/previous capability to archive list
* Fixing tested up to line in readme.txt
* Adding args attribute to modify get_terms for archive shortcode
* Add styling to center featured thumbs with percentages
* Change featured thumbnail shortcode layout markup and remove font family styling

= 1.2.6 =

* Fixed Article Category widget dropdown bug

= 1.2.5 =

* Fixed Issue Ordering Bug

= 1.2.4 =

* Updating POT file
* Added new filter for leaky paywall to restrict PDF downloads
* Fixed article category sorting bug
* Fixed article import bug with Issue's missing meta data
* Added fix for query reset on widgets
* Added fix for category ordering in shortcode
* Updating some CSS and tested up to version
* Added option for the [issuem_archives] shortcode to generate issue urls using get_term_link instead of based on the shortcode page with a backup to the previous links in the event of an error

= 1.2.3 =

* Added integration for upcoming Issue to PDF plugin
* General Code Cleanup

= 1.2.2 =

* Fixed bug in Extrenal Link setting for Issues
* Fixed bug in displaying WordPress author as First & Last name
* Fixed some PHP docblock

= 1.2.1 =

* Added function/hook to add featured image to article post type, if not supported by theme
* Rewrote flush rewrite rules activation hook for better performance
* Fixed version number in PHP comments
* Added option to set page for issue archives
* Added filter to set default page content for issue archive page (if no content exists)

= 1.2.0 =

* OpenSourceInitiative Release!

= 1.1.8.1 =

* Fixed typo in Editor permissions

= 1.1.8 =

* Fixed bug in advanced search shortcode
* Added pre_get_posts filter call to modify the WordPress Categories/Tags query if not using IssueM Categories/Tags
* Added shortcode to display current issue title
* Fixed IssueM Category and Tag names
* Fixed permissions
* Fixed typo in str_ireplace helper function

= 1.1.7 =

* Fixed bug in shortcodes when using the IssueM Category Order field. Must set use_category_order="true" in the issuem_articles shortcode.
* Fixed bug in shortcodes not displaying the Author name when "Use IssueM Author Name instead of WordPress Author" option is set.

= 1.1.6 =

* Fixed bug in shortcodes defining the specific issue slug.
* Fixed i18n text domain directory typo
* Fixed typo in advanced search form
* Added Swedish translation
* Fixed error in issuem.pot file

= 1.1.5 =

* Modifed CSS styling to deal with themes overwriting the Featured Image Rotator
* Added Spanish translation

= 1.1.4 =

* Modified archive shortcode to use external link setting depending on issue logic
* Added 'archive_issue_url_external_link' filter to set the external link for as the primary article URL too
* Added 'issuem_author_name' setting to IssueM user interface

= 1.1.3 =

* Fix permalink rewrite cache issue for new users
* Added i18n support for future translations
* Added 'issuem_author_name' filter for users who do not want to use the built-in WP-User authors
* Switched from jqFancyTransitions jQuery slider to FlexSlider for responsive functionality

= 1.1.2 =

* Fixed bug in buyer's news

= 1.1.1 =

* Added informational buyer's news section to articles page
* Added show_featured option to articles shortcode (off by default), to prevent articles in the rotator/thumbnails from also appearing in the article list

= 1.1.0 =

* Fixed bug getting new version information from IssueM API
* Added API warnings and errors

= 1.0.9 =

* Fixed bug with issue order causing last Issue ID to be first regardless of order
* Added 'article_category' argument to issuem_articles shortcode, now you can specify a single category

= 1.0.8 =

* Set default issue order to issue_order for widgets
* Enabled issue order sortable column in dashboard, set it as the default sort
* Fixed some missing l18n text
* Added orderby option to article list widget
* Added issuem_issue_url filter for users who want to change the default Issue URL
* Added 'external link' field to issue meta, for users who want to link to a PDF/URL not hosted on their own site
* Fixed bug caused by users who set the Issue Order for only some of their issues
* Fixed bug in issuem_replacements_args workflow

= 1.0.7 =

* Set default issue order by issue_order instead of issue date
* Added filter to set default page content for issue page (if no content exists)
* Hot linked cover image to issue page in Active Issue widget
* Added CSS to Article List Widget to highlight current article (if on one)
* Fixed Article List Widget so it displays empty issues

= 1.0.6 =

* Fixed bug IssueM Migration tool link showing up when it was not enabled
* Fixed bug in Active Issue Widget, not showing default IssueM issue image when not specific issue image was set

= 1.0.5 =

* Added IssueM Migration Functionality, to migrate Posts to Articles
* Fixed issuem_archives shortcode to display correctly
* Added CSS and JavaScript auto version matching with IssueM version

= 1.0.4 =

* Fixed PHP Warning bug for site with no issues
* Added ability to users with 'manage_issues' permission to see Draft issues
* Added ability to specify an issue in the issuem_articles, issuem_featured_rotator, and issuem_featured_thumbnails shortcodes

= 1.0.3 =

* Fixed Verify API button
* Fixed Archived Issue default format alignment
* Fixed IssueM Cookie settings

= 1.0.2 =

* Added RSS Feed filtering, so draft issues do not show up in RSS feed and only the active issue article shows up by default
* Added category and number of Article options to Article List widget
* Minor bug fixes

= 1.0.1 =

* Beta Release
* General Code Cleanup
* Added ability to choose open target for PDF links
* Added a number of helper functions
* Fixed template names

= 1.0.0 =

* Beta Release

issuem's People

Contributors

agentk avatar brq avatar fredclaymeyer avatar greenhornet79 avatar lewayotte avatar priscillamc avatar tikrin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

issuem's Issues

Permalink styles for articles

Awesome project here, very useful.

One nitpick is that I cannot change the permalink style for the articles. It would be great to be able to do this.

I'm not requesting the developers of any work to do this, I'm probably going to do it myself, just posting an issue for it because I'll probably submit a fix for it.

Issue-to-PDF plugin not stripping out shortcodes

Apologies if this isn't the proper channel for this help request, IssueM support has been silent on my request for guidance.

Problem: While IssueM plays nice with my theme's Avia Layout Builder, the Issue-to-PDF plugin leaves the formatting shortcodes in the top of the articles.

Click the link below and then click "Download as PDF" to see what I mean (then scroll down till you're at the start of the first article).

http://prettycool.site/past-issues/

I know about the filter I need to put in the functions.php, but I don't know how to write the code that strips the shortcode, nor where to put it. Once I see how it goes, I'll be able to build on it.

As a journeyman WordPress guy, I'm humbly asking for help.

/switches hats - off goes WordPress dev cap, on straps software PM helmet

The other thought I had is "who would EVER want shortcode to appear in their PDF?" Is there a way you could bake this functionality directly into the Issue-to-PDF plugin so as to avoid ever hearing from n00bs like me?

Thanks in advance for your help.

Tom Penberthy
Concordia University, Portland

Dollar signs are deleted in article shortcode

The templating system that generates issuem articles via the [issuem_articles] shortcode uses preg_replace to substitute content for the variables entered in the admin screens (e.g., %EXCERPT%) but it doesn't quote the content first.

So, if an article has a dollar figure, like $5.00, or $1.2 trillion, the dollar signs are treated like regex substitutions and the shortcode output ends up being ".00" and ".2 trillion".

Pull request to come. Thanks!

Where is the Issue articles listing pagination limit?

Where is the setting for the pagination limit for the number of articles that are displayed in an issues article listing before it gets split into multiple pages?

As an example, the issue this page on my website contains 13 articles. The first 10 are listed, but the user must click the Older posts link to see the other 3 articles. I'd like to be able to adjust that limit=10 variable that seems to exist somewhere but can't find it in the settings or IssueM plugin code.

Thanks for any help!

Gutenberg support for Issues taxonomy

Hi,

There is no option to select particular Issue and Article category when creating/editing an article in Gutenberg editor. Screenshot attached.

image

Thanks

Order Issues Based Off Issue Order On Article Edit Page

When editing an article, the taxonomy of issues are ordered alphabetically. A suggestion has been made to have those taxonomies ordered based off issue order instead. This would insure that the newest issue was easy to select when creating new articles, instead of having to scroll through all the issues to find the new one.

php compatibility

I have a client website on Siteground that has a PHP version/compatibility issue...

wp-content/plugins/issuem/issuem-shortcodes.php

FOUND 2 ERRORS AFFECTING 2 LINES

104 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
496 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead

Multisite Permissions Issue

It's been reported that if Issuem is not activated on the main blog of a multisite then the subsites that use IssueM will report 'Not authorized' style of message

Non-featured posts not loading correctly

From a wonderful contributor:

I'm using IssueM 2.7.4 and experiencing a problem when certain issues are saved; the system isn't properly registering when a post is or isn't a featured thumbnail or a featured rotator item when displaying using the shortcode.

The problem is in how the system finds non-featured posts; line 54 of issuem-shortcodes.php checks to see if the meta fields _featured_rotator or _featured_thumb exist in a post. This worked until recently, when a coding change in lines 187 and 192 of issuem-post-type.php sets those meta fields to the word "off" if they're not set.

So, the meta field contains the word "off", but the check is to see if the field exists at all, which will always return true.

My fix was to change line 54 of issuem-shortcodes.php to read:

$args['meta_query'] = array(
'relation' => 'AND',
array(
'key' => '_featured_rotator',
'compare' => '!=',
'value' => 'on'
),
array(
'key' => '_featured_thumb',
'compare' => '!=',
'value' => 'on'
)
);

alt text on issue cover

Is there a way to assign alternative text to the magazine issue cover photo within the Active Issue widget? This poses accessibility problems when we have images without alternative text.

Translation for Issuem Advanced Issue Search

User is looking to translate parts of IssueM Advanced Issue Search and would like text added to POT/PO file so they can translate to Spanish. Here's the request:

"Advanced Search":
Búsqueda avanzada

"Your IssueM Articles."
Tus artículos de IssueM.

"Keyword or Phrase:"
Palabra clave o frase:


"Search"
Buscar

"Buscar" (This one is already in Spanish, I don't know exactly why the webmaster has included it, it may just be a mistake)

"Issue:"
Número:

"Use the Control or Command/Apple key to select multiple issues"
Usa la tecla Control o Command/Apple para seleccionar varios números 

"Search All"
Buscar en todos

"Category:"
Categoría

"Use the Control or Command/Apple key to select multiple categories"
Usa la tecla Control o Command/Apple para seleccionar varias categorías

"No results were found for your request."
No se han encontrado resultados para esta búsqueda

"IssueM's Advanced Search"
Búsqueda avanzada de IssueM

Shortcode attributes

Currently, the default ordering for articles in the current IssueM issue is descending, which seems counter-intuitive to me -- wouldn't it make more sense from a user's perspective for a magazine-style page to have the articles appear in ascending order? (This would just involve a trivial change in the default from 'DESC' to 'ASC' in issuem-shortcodes.php on line 32.)

This might not be a worthwhile change because it could screw up existing configurations, but the real reason this cause me problems is that the IssueM dashboard help page doesn't make it clear that passing arguments to the issuem_articles shortcode is possible, implying instead that only the issuem_archives shortcode accepts arguments. In this case, passing "order='ASC'" solves the problem. Wouldn't it make sense to document the possibility of passing some of these arguments to the other shortcodes?

PHP 7 Incompatabilities

IssueM shortcodes are using split() PHP function which has been removed in PHP 7.

FILE: .../wp-content/plugins/issuem/issuem-shortcodes.php

FOUND 2 ERRORS AFFECTING 2 LINES

104 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
496 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead

Make IssueM Byline Translatable

The %BYLINE% string replacement on 'issuem-functions.php' is not translatable on the 'By' part. There is a filter that can be used to change it, but not in coordination with a translation file.

Use_category_order not working as expected

use_category_order on [issuem_articles] shortcode will only return one article of specified category. If you leave flank or set to 'Featured', it will return all articles. If you only choose a specific category order, it only returns the 1 article.

Unable to add cover image to issue

Wordpress 5.5 / IssueM 2.8.2

Under Issues, when you click on "Set Cover Image" nothing happens and you see below in console:

issuem-issue-admin.js?ver=2.8.2:36 Uncaught TypeError: Cannot read property 'frames' of undefined
    at renderCoverUploader (issuem-issue-admin.js?ver=2.8.2:36)
    at HTMLAnchorElement.<anonymous> (issuem-issue-admin.js?ver=2.8.2:176)
    at HTMLAnchorElement.dispatch (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable&ver=5.5:3)
    at HTMLAnchorElement.r.handle (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable&ver=5.5:3)
  ##```

Feature request: Set sidebar for issue detail pages

I'm currently building a site with a lot of different sidebars: one for the homepage, one for the shop, a couple for certain areas, and of course there is a specific sidebar made for the Magazines & issues.

Now, currently there does not seem to be a way to choose which sidebar should be shown on an issue detail page, it just defaults to the default sidebar. It would be great if this was available as an option through the settings.

A possible work around would be to use the main sidebar to hold the widget issues. But this would not be a good solution.

Article is not added to the main rss feed

I tried adding the article to the main wordpress feed using these below codes in function.php, but that didn't work.

// Add articles to main RSS feed.
function add_articles_to_main_feed( $query ) {
if ( $query->is_feed() && !isset( $query->query['post_type'] ) )
$query->set( 'post_type', array( 'post', 'article' ) );
return $query;
}
add_action( 'pre_get_posts', 'add_articles_to_main_feed' );

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.