• 0
Sign in to follow this  
Followers 0

Where is the Blog Template? ...or Blog page code.

Question

Posted · Report post

Hi,

 

I have a simple question. I need to replicate the Blog page that Pagelines assigns in Settings > Reading TO a page template.

 

I cannot select the page in Settings > Reading because the membership plugin Wishlist IGNORES this page, and thus means, I cannot protect it, so I need a way around this.

 

I need only to take the blog page, exactly as it is setup, and make it a page template, how can I do this?

 

Thank you!

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

Posted · Report post

Hi there, the posts page is dynamically created so its not a set page. I would imagine wishlist would have an option to protect this though as most wp member sites will have a blog they want to protect, or do they allow you to view the blog page but then when you go into the post it's restricted?

 

Have you got the blog set to a static page in settings reading? Or is it set to show on the homepage?

 

The only way I can think you'd be able to recreate the blog on a static page would be to setup a blank page using the template of your choice and then use a hook to insert the loop or a plugin like 'special recent post' to insert the post excerpts like the standard wp page.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Unfortunetly, this is a response directly from their support.

 

"As for the question about the blog page, I'm sorry but the custom template is the only thing I can think of right now. We don't protect pages by their URL."

 

The blog page is set to a static page, not the homepage, and yes, the actual posts can be protected, but we need the blog page.

 

Could you coach me on setting up a template, inserting a hook to insert the blog loop? or...a plugin isn't a bad idea, but do you know anything that would allow for a typical blog page layout/look?

 

-r

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Unfortunately, you can not do what you want, as the templates are dynamically created in DMS. The problem on the WishList member in my opinion, as they should really protect the page and not the template. I am not an expert on this, but that sounds like a better option than protecting a template.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hmm but I have to be able to put all the code in a template page that calls up everything that Pagelines Theme needs [not DMS] to dynamically make that call, right?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I'm not too sure what you mean by the above. But the standard loop in any static Page is only going to pull in the content for that page, not main loop. If you want to pull other information I would imagine from reading the support threads at wp.org you'll need to start looking at custom queries -http://codex.wordpress.org/Function_Reference/WP_Query

 

Really it would be easier to use a plugin like special recent posts or anyloop to do this for you and then using css to style out the excerpts to how you want them to look/behave etc.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I agree, seems like it would be easier to use a plugin that pulls in posts from the posts loop then monkeying with custom queries. Thank you.

 

-r

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

You're welcome, good luck, let us know how you get on.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0