SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jul 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Wordpress Custom Post Types

    Ok, some background info:

    1. I'm not a fully fledged developer, but I'm getting there
    2. I've taken over the maintenance of a WordPress site with a custom theme
    3. I didn't know WordPress before this, so I've had to learn it and still don't know everything
    4. I know what Custom Post Types are and how to create them

    My problem, is that there appears to be a number of custom post types created by the designer of the theme and I can't find where they were registered. They're not in the theme's functions.php and I'm not sure where else to look.

    Heck, maybe they aren't even custom post types, but they appear in the main menu on the right (see attached image) and you can add new content just like you would in a custom post.

    Can anyone help me with with this? The reason I'm asking is because I'd like to disable them because the end-user of the site doesn't actually need them and they're just cluttering up the menu. She's not all that savvy so I want to provide her with a clean admin area. The on'es I'm referring to are Clients, Testimonial, Services and Portfolio.
    wp_menu.jpg

  2. #2
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,243
    Mentioned
    239 Post(s)
    Tagged
    1 Thread(s)
    I would assume that he created his own function for his theme but I assume that you've already looked the function.php file that came with it

  3. #3
    SitePoint Zealot bronze trophy
    Join Date
    Jan 2012
    Posts
    116
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Check to see if there are any "custom post type" plugins installed.

    There's a couple of good ones I like to use called "Types," and the other is "Custom Field Suite." See if any of those plugins (or something like them) are installed.

    If you haven't already done so, you should probably go through and take full inventory of all plugins installed, and get a handle of what they all are and what they're doing.

  4. #4
    SitePoint Member
    Join Date
    Jul 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, thanks for your replies.

    I eventually found them in a file called theme-init.php that was then included via the functions.php file.

    I haven't learned that much about doing this that way yet.

  5. #5
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,192
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Custom post types can be registered from within both plugins and themes, it's more common now days to just register them in a theme compared to using a plugin which depending on how advanced the post types are going to be can be redundant.

    Personally I tend to build more advanced custom post types so I always work within a plugin to separate things out.

    Just my 2 cents.


    Sent from my iPhone using Tapatalk


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •