thomasgriffin / theme

Theme for Pippinsplugins.com
2 stars 3 forks source link

Product add-ons #4

Closed pippinsplugins closed 9 years ago

pippinsplugins commented 9 years ago

Some of the product plugins have add-ons. I don't want these to be listed as main products, but rather as sub-products somehow on the main product page.

For example, Restrict Content Pro has several add-ons. See sidebar here.

amdrew commented 9 years ago

Similar to AffWP I've created a category called Restrict Content Pro Add-ons which any add-on for RCP is assigned to. These are hidden on the main product listing and on the single product page I'm going to display them all at the very bottom somehow.

pippinsplugins commented 9 years ago

This will need to be done in a way that supports all plugins.

I'd actually prefer this be done with Post 2 Post since that's what the site already uses. If you look at the RCP post (not the download product), you will see that it is already connected to each of the add-ons via Post 2 Post.

The code for this is all in the Custom Functions plugin.

amdrew commented 9 years ago

Sounds good

amdrew commented 9 years ago

Product add-ons for RCP. The excerpts will be a lot shorter and they will have images like the main products page https://staging.pippinsplugins.com/products/restrict-content-pro/

screen shot 2014-09-10 at 3 20 43 pm

@pippinsplugins question. On the main products listing i'm currently hiding the add-ons from appearing by assigning them to a category and then using pre_get_posts to hide them. Can you think of a better way to hide these addons? Such as detecting that they are linked using posts2posts?

https://staging.pippinsplugins.com/products/

pippinsplugins commented 9 years ago

That seems like a fine method to me!

On Tuesday, September 9, 2014, Sumobi notifications@github.com wrote:

Product add-ons for RCP. The excerpts will be a lot shorter and they will have images like the main products page https://staging.pippinsplugins.com/products/restrict-content-pro/

[image: screen shot 2014-09-10 at 3 20 43 pm] https://cloud.githubusercontent.com/assets/52581/4212265/82f9fe54-3899-11e4-831c-f15250fad90d.png

@pippinsplugins https://github.com/pippinsplugins question. On the main products listing i'm currently hiding the add-ons from appearing by assigning them to a category and then using pre_get_posts to hide them. Can you think of a better way to hide these addons? Such as detecting that they are linked using posts2posts?

https://staging.pippinsplugins.com/products/

— Reply to this email directly or view it on GitHub https://github.com/pippinsplugins/theme/issues/4#issuecomment-55066570.

amdrew commented 9 years ago

Think this is all good