Jump to content
Sign in to follow this  
bigdawggi

Custom Post Type Special Page -- Only Some Sections Work

Recommended Posts

bigdawggi    0
bigdawggi

Website URL: (local, not available)
Framework Version: 2.4.1
WordPress Version: 3.5.2
Plugins in Use: My own custom ones that just create a custom post type
Server/Host: Apache 2.2
Screenshots: 

 

Video Landing Page:   http://glui.me/?i=52xhbdfortrxqr8/2013-04-11_at_8.13.53_AM.png/

Gallery Landing Page: http://glui.me/?i=9bkiomi3towoxu3/2013-04-11_at_8.20.46_AM.png/

 

Details:

 

I override the main query at 'wp' action to pull the CPT Landing Page for the originally queried post type.  I set the global $post and do setup_postdata() with it. The page template seems to respect the various sections I have assigned to the CPT, but (besides the "features" section) not the *settings* for the respective section.

 

For example, the masthead section's oset property is:

Array
(
[post_id] => (no post ID)
[clone_id] => 1
[group] => masthead
)

 

Any ideas?

 

 

 

 

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there,

 

These type of customizations are outside of our main support spectrum, but I'll check with a developer for you to see if they can advise anything they spot in your code which is stopping the changes from taking place.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
bigdawggi    0
bigdawggi

Thanks James, that'd be really great if they provided some tip for this.  I'm overriding the global $post at the 'wp' action, so in my thinking no template setup should've happened by that point.  I look forward to a reply if they can!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

Can you go into more detail as to what you're actually trying to achieve please. I have create hundreds of custom post types and all sections are available.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
bigdawggi    0
bigdawggi

Sure, not a problem:

 

/videos/test-one -- Loads the specified "test one" CPT with it's sections and their respective settings just fine.

/videos/ -- Would typically load an archive view of videos (which is supported just fine by PL).  I have created a CPT of "landing page", where if the request is for /videos/, I hook in at 'wp' and query for a specific landing page post type item.  I then override the global $post object with that landing page post type item, and do setup_postdata() for that item -- so that all global references for $post are now pointing to that landing page post type item.

 

PL seems to handing referencing which sections are assigned to that post type item, but not the settings that are set against that item's assigned sections -- except the "features" section seems to respect the landing page item's settings.

 

Does that make more sense?

Share this post


Link to post
Share on other sites
bigdawggi    0
bigdawggi

...and I just wanted to say I appreciate your assistance!

Share this post


Link to post
Share on other sites
James B    436
James B

Hey Bigdawggi

 

Can you paste the full code you're using into the paste bin so it can be checked over - http://paste.pagelines.com/

 

Then drop us the url for the paste back here.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi,

 

Danny will be in tomorrow morning, so I've written him to take a look at your code.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
meilena    8
meilena

Hi,

 

We are still looking into your request, please bear in mind this is an advanced question and may take more time with a response.  Thanks for your patience.


Meilena Hauslendale

PageLines.com

"A Better Way to Build Websites"

Share this post


Link to post
Share on other sites
bigdawggi    0
bigdawggi

Hi there guys, any movement on this?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

We apologise for the delay in regards to resolving your topic. I must admit, that PHP is currently not my forte so I am unable to assist you. However, I will bring this to the attention of our developers again but they're currently extremely busy.

 

What I would recommend in the meantime, while you wait for a response. is for you to signup to our developers community. If accepted, you will have access to our developer community Skype room, where you can speak to fellow developers for assistance and advice.

 

http://developer.pagelines.com/apply/


Please search our forums, before posting!

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  

  • Similar Content

    • art23130
      By art23130+
      I have uploaded a file shoing missing sections for Custom Post Type
      It is OK for categories and tags but not for a single post types. 
      This is the link. 
      https://www.geoinformation.com/geocode_library/10-10570-rsg-2016-003/
      Any idea?
      thanks 
      Binder1.pdf
    • globalnative
      By globalnative+
      Hi there! 
      I'm wondering if I can and how I can easily make a one page scrolling parallax site with menus which scroll rather than take me to a new page?
      Something like this: http://demo.vellumwp.com/home-pages/one-page-resort/.
      Thank you kindly
      Nate
      PS: my site: http://natemaingard.com
    • PeriniNero
      By PeriniNero+
      We are building a Custom Post Type with Custom Fields and Custom Taxonomies.
      The only thing we dont understand is how to embed the Custom Fields including header tags and stuff in the Postloop (now we use a text-box below the postloop section but also SEO wise this is not best pratice).
      So we thought to copy the dms Postloop section to our child theme and rename this, to add an extra Postloop section to our theme. Is this the way?
      What exactly to adjust in those 3 files class.posts.php, section.php and style.less (at this point we know how to change the thumb LOL) and where to add the Custom Fields shortcodes?
      Thanks.
    • Audun MB
      By Audun MB+
      I'm using plugins such as Events Manager and WP Glossary. Basically I need to edit the meta information and the breadcrumb for the custom post types Event and Term. The plugins instruct me to add a single-event.php and single-glossary.php in my (child) theme.
      What should I use as a basis for these files? Can I use the templates in the Framework main theme as a basis (tpl-a.php)? Or should I use the whole page.php file?
       
    • Skip
      By Skip+
      Hello
      I have a current website http://TrueBlueAuctions.com that I would like to create a new page that is entirely blank without any headder or footer as a landing page that I can have information and links to the other pages.  This would not be a home page for the website but named differently - http://www.trueblueauctions.com/your-home-sold-for-top-dollar/.  
      My question is that is there a way for me to build this page by itself without any header or footer information that normally appears as part of a template for all the other pages?  I wanted to ask before doing because I don't want to mess up what I've done so far with the website.
      Thank you for your thoughtful consideration.
      All the best of Providence.
      Skip
×