Jump to content
Oxford_Guy

Custom taxonomies not showing - are they supported in Pagelines?

Recommended Posts

Oxford_Guy    0
Oxford_Guy

Hi - custom taxonomies are important to me, but I can't seem to get them to work in PageLines Lite. I've installed and activated the Pagelines Customize plugin and have added this code to the functions.php file in the pagelines-customize folder:


/**

* Custom taxonomy for recipe ingredients

* Following guidelines in Dig into Wordpress 3.3 p.35

* Also references code from: http://codex.wordpress.org/Taxonomies

*

*/

function ingredients_init() {

// create a new taxonomy

register_taxonomy(

'ingredients',

'post',

array(

'hierarchical' => false,

'label' => __( 'Ingredients'),

'query_var' => true,

'rewrite' => array( 'slug' => 'ingredient'),

)

);

}

add_action( 'init', 'ingredients_init' );

Normally when I use this code, when I open up the "Posts" menu item in the WP admin side bar I will get an additional menu item for each taxonomy I create under "Tags", so when using the above example I should get a menu item for "Ingredients" where are can add new terms, assign them to posts etc. Also any posts tagged with a term from one of these taxonomies (e.g. "eggs") should be listed when I use a url of the form: http://myblog/ingredient/eggs but I'm getting a 404 error instead.

Are custom taxonomies not supported in Pagelines or do I need to set these up in a different way? If custom taxonomies are not supported, I'm not sure that Pagelines is going to work for me :-(

Share this post


Link to post
Share on other sites
Oxford_Guy    0
Oxford_Guy

I think I may have found some clue as the why the above code isn't working, when I go the Edit page for page lines-customize/functions.php I can see my custom code there, but at the top of the Edit page its says:

Editing pagelines-customize/functions.php (inactive)

This is despite the Pagelines Customize plugin itself being active. In fact this is the current status for all the files in the pagelines-customize folder:

pagelines-customize/pagelines-customize.php (active)

pagelines-customize/functions.php (inactive)

pagelines-customize/style.css (inactive)

How do I make pagelines-customize/functions.php and pagelines-customize/style.css active? Is Pagelines Customize fully supported by PageLines Lite or is this where the problem lies?

Share this post


Link to post
Share on other sites
Rob    547
Rob

Editing pagelines-customize/functions.php (inactive)

Is a WordPress default that has no bearing whatsoever on the activity of your work on the page. It also has nothing to do with whether your changes work.

What is impacting your use of custom taxonomies is the fact that you're using PageLines Lite rather than full Framework. Lite implies it has limited functionality and to do custom things, you should upgrade.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Oxford_Guy    0
Oxford_Guy

Editing pagelines-customize/functions.php (inactive)

Is a WordPress default that has no bearing whatsoever on the activity of your work on the page. It also has nothing to do with whether your changes work.

What is impacting your use of custom taxonomies is the fact that you're using PageLines Lite rather than full Framework. Lite implies it has limited functionality and to do custom things, you should upgrade.

Okay, to make sure I've understood correctly:

1) The PageLines Custom plugin is not compatible with PageLines Lite

2) Implementing custom taxonomies using code such as the example I gave should be fine using the full PageLines framework?

I just wanted to confirm this, as don't won't to upgrade to the full framework unless its possible to use custom taxonomies, but this isn't something I can test beforehand

Share this post


Link to post
Share on other sites
Rob    547
Rob

1) No, the PageLines Customize plugin is compatible, but not every function added to it will be compatible with Lite. Some will be; some won't.

2) Custom taxonomies are usually added via a plugin as this is a complex process involving WordPress core, not so much PageLines. You should consider using "Custom Press" a plugin I use successfully in my site. Works perfectly with Framework.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Oxford_Guy    0
Oxford_Guy

1) No, the PageLines Customize plugin is compatible, but not every function added to it will be compatible with Lite. Some will be; some won't.

Oh okay, I see. So I could still potentially add some custom PHP functions and CSS to Pagelines Lite?

2) Custom taxonomies are usually added via a plugin as this is a complex process involving WordPress core, not so much PageLines. You should consider using "Custom Press" a plugin I use successfully in my site. Works perfectly with Framework.

Okay, thanks for the tip

Share this post


Link to post
Share on other sites
Rob    547
Rob

You can, but I don't know and can't guaranty that they will work with Lite. It has very specific limitations with some functions which is why you should really get the Framework.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Simon    247
Simon

Actually. custom tax will still work, we are not allowed to remove core wp functionality otherwise the theme would not be allowed in the wp.org repo!

The problem here is this:

Your adding an init action into the customize plugin, but the customize plugin functions.php is called during template_redirect, and that happens on front end WAY after init ;)

SO you need to create a simple child theme ( docs are on the wp codex ) and in the child theme functions.php add your code ;)

Share this post


Link to post
Share on other sites
Oxford_Guy    0
Oxford_Guy

Hi - thanks to everyone for your help with this, its good to know that even for Pagelines Lite some support is offered, which I take as a good sign for the level of support offered for the paid product...

Anyway, I've been able to implement custom taxonomies in Pagelines Line using the "Custom Press" plugin that Rob mentioned (thanks for the tip), so now I at least know its possible to implement these in Pagelines a reasonably straightforward manner (so this issue can probably be considered closed)

The wider issues with the customize plugin functions.php are a little over my head, it sounds like only certain code works here, but using a functions.php file in a child theme may be a way to get around this.

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

    • DanatTLFN
      By DanatTLFN
      Site URL: http://thelocalfilmnetwork.com
      Host: GoDaddy
      Hi Pagelines team and community,
       
      I am going to be attempting to do a full migration from GoDaddy to WPEngine. 
      I need to know, will I lose the front-end customisations I have made?
      Also are there any backups or things I need to do to ensure that I do not lose any important info relating to the site?
      Kind regards,
      Dan
       
    • DanatTLFN
      By DanatTLFN
      Hi Pagelines Team,
      I am interested in setting up a bbPress forum on my website.
      Unfortunately, I have never set up a child theme for my site and have been just using the drag and drop system to put together my site on the main theme. If I am to install the child theme, and activate it, what do I stand to lose in terms of design and current configuration settings on the backend?
      Thank you for taking this time to read this.
      Kind regards,
      Dan
    • aldisney
      By aldisney+
      Hi--
      I was wondering if there was a relatively easy to way automatically assign a thumbnail to a post category when displaying posts in the Masonic Gallery format, when the post doesn't have a featured image? I've got a client with a ton of posts that just won't have any featured images, but each category has a header image. I'd like to display the header image as the thumbnail for all these posts, since, going forward, my client does actually plan to use featured images.
       
      Thanks!
    • conduitcomms
      By conduitcomms
      Hello there,
       
      I am a newbie to DMS. I have a serious problem but I don't know how to fixed it. After I edit my site with DMS Pageline, the front end didn't show my design.
       
      How it look like at my back-end, (After I have log in, it shows like this, which is exactly my design)

       
      However, after I have log out and view it in both Safari and Chrome, this is how it look like at the front end

      Is there any way I have done it wrong? I have already activate the DMS 2 with the Key.
       
      I am here to attach my site info.
       
      Website URL: http://conduitcomms.com/parallax_experiment/
      Framework Version: DMS 2
      WordPress Version: Wordpress 4.0.1

      Plugins in Use:

      Server/Host: hksho0
       
      Thank you very much!
       
      Vienna
    • dawsonbarber
      By dawsonbarber+
      I originally asked this question over here http://forum.pagelines.com/topic/35584-voyant/ but realized I should have started a new topic.   I don't seem to be able to start one under the PageLines Store Products forum because I can't find Enrique Chavez listed there.   Anyway, my question is about the Pagelines store child themes, like Flatten and Voyant.   Where do I add custom functions? There does not appear to be a functions.php file that I can/should edit so I'm wondering where they go.   I usually use a child theme based on Danny's Skeleton child theme, which, of course, has a file for custom functions.   Please advise.   Thanks
×