Jump to content
linkinp

Dynamic Post Creation : Individual Page Content Layout Not Getting assigned

Recommended Posts

linkinp    4
linkinp

I have a custom post type.

I have customized its archive layout and single post layout in Drag and Drop.

Plus in single post layout I have added boxes in the content area.

However in drag and drop I do not find the Page Setup Layout option, so I click Page Options and Blog Page and I set the layout ( Individual Page Content Layout ) to the second option which is content and one sidebar

---

Now,

I create custom posts dynamically based on users input.

and I figured out that I can enable boxes ( make them visible ) dynamically based on users input. B)

----

Everything is working just the way I want ..EXCEPT .... :(

I am not able to set the Individual Page Content Layout for the dynamically created post.

All my dynamically created posts show up as basic full page without side bars.

---

Am I missing something.

Should I be also setting a custom field value ?

--

Share this post


Link to post
Share on other sites
linkinp    4
linkinp

I did some digging around and I can simply rephrase this question as ,

Where is the value for "Individual Page Content Layout" assigned to individual custom posts stored ?

My guess was it would be stored in wp_postmeta and that I could simply manipulate it there for my dynamic post, but its not there. ?

Please advice

Share this post


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

Hi,

So do you want to be able to control the default settings similar to Blog Post in Page Options ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
linkinp    4
linkinp

I am creating custom posts using wp_insert_post

Everything works fine, just that I am unable to set the post to have one side bar

The post has the default wide page layout.

How can I set the post to get the second layout ( Page with one right sidebar ).

Share this post


Link to post
Share on other sites
Simon    247
Simon

The setting is stored in the post meta, take a look in the database the key is _pagelines_layout_mode

Share this post


Link to post
Share on other sites
Simon    247
Simon

The topic was marked as resolved.

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


  • Similar Content

    • MissT
      By MissT+
      Hi there, the Filter By option within the Masonic section isn't working when a custom post type and custom category is selected.  If you swap to normal posts and categories then it works but sadly not with custom post types and custom categories.
      All posts are shown but when you click on the categories all posts disappear even though posts do have these categories. When you click All all the posts come back. I've tried this on two different websites with the same result.
      Many thanks in advance.
    • bwdsl247
      By bwdsl247
      I am using 'Type' plug-in to create custom post types. 
       
      However, when I go into Flipper (and some other DMS plug-ins) I don't see the custom post types I create in the Post Types drop-down; only Pages, Posts and Testimonials.
       
      I assume Flipper supports custom post types, right?
       
      If so, what settings should I look at to make it so all my custom post types appear in Flipper's drop-down selector for post types.
       
      Thanks!
    • sethoof
      By sethoof
      I am working on developing a research center for my charity's website (www.opfistula.org).  We will define a custom post type for the research papers we include.  I was hoping to use the blog template to display these custom post types. But I am not sure how to get the custom post types to display or how to get the sidebar information in the blog template (popular, recent, comments, tags) to link to the custom post type I have created.  It seems to be linking to the normal post types, which I am using for our blog page. 
       
      The Research Center: http://www.opfistula.org/fistula-research-center/
      The blog: http://www.opfistula.org/blog/
       
       
       
      Can you guys help? 
    • fionnlavery
      By fionnlavery
      Hello,
       
      For the site I am creating I want to use the the docker as a side menu for some sections of the site.
      However I want to keep the pages I am linking to, to have different templates.
      Currently I can make a custom post type and get them into the docker but it would appear I am unable to use different templates for all these pages as having them as custom post types seems to force them all to have the same template.
       
      Is there anyway I can use the docker to link to pages that use different page templates?
       
      Regards,
       
      Fionn
    • dawsonbarber
      By dawsonbarber+
      What's the best way to get custom post types with different taxonomies/terms to display different widgets in the sidebars?   For example, I've created a custom post type for Market Updates with a (hierarchical) taxonomy of Property Types.   I've got 3 different Property Types: Detached Homes Townhouses Condominiums I've created 3 different sidebars using the Sidebar Manager Light plugin: each one named for the above-noted Property Types.   I've created 3 different Views using WP Toolset Views for each Property Type.   I've added the Views to the sidebars in the WordPress widget area.   I'm trying to use the Widgetizer section in the sidebar of each Property Type to display only the same types of properties (i.e., I only want Detached Homes Property Types to display in the sidebar of a Detached Homes custom post type).   But it's not happening for me.   No matter what, I get the same widgets in the sidebars of different pages (so Detached Homes shows up in the sidebar of Townhouses and Condominiums).   I don't seem to be intellectually capable of figuring out how to get specific widgets to show up in the sidebars of specific custom post types (and only in those sidebars).   I've tried Widget Logic (the plugin) with conditional tags and have tried custom templates but I can't get it to work and it's doing my head in.   The site`s still under development but here`s a link to a page about Detached Homes, in case it helps: http://abbotsfordrealestate.co/market-updates/detached-homes-may-2014/   Can anybody tell me what I am missing / doing wrong?   Thanks
×