Support » Plugin: Custom Content Type Manager » single post not showing

  • Resolved LenMatts

    (@lenmatts)


    Hi good day!

    Been racking my brains here, followed all the procedures in installing and setting up custom content type manager, was able to:
    1. create a custom content type
    2. create a post of custom content type
    3. create a page of summarize_posts

    but cannot see the single post page 🙁 it always says page not found, i’ve created the single-post-type.php and uploaded it on my themes directory still to no avail..you can event search for the custom content and it will show but once you click the “Read More” button *bam* “Not Found”

    here’s the link for my site

    http://www.pinasprof.com

    you can click the page for Professors and once you click the entries, it wont show up..

    any help?

    thanks

    https://wordpress.org/plugins/custom-content-type-manager/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter LenMatts

    (@lenmatts)

    was able to find the solution with in this forum too…followed each step and works like a charm..thanks Mike

    Here’s the actual thread..kudos Mike

    http://wordpress.org/support/topic/possible-issue-with-wp-38-cctm?replies=10

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Yeah: WP url handling is trouble, and unfortunately the simple ugly urls work the best.

    momilc

    (@momilc)

    Hello,

    I have quite the same problem, actually once I create the single-post.php and put it in folder /wp-content/themes/twentyfourteen/

    My sidebar and all other menu are messed up. Here is the code I got bellow. Thank you for your help

    ——————————————
    <?php
    /**
    * Sample template for displaying single post posts.
    * Save this file as as single-post.php in your current theme.
    *
    * This sample code was based off of the Starkers Baseline theme: http://starkerstheme.com/
    */

    get_header(); ?>

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    <h1><?php the_title(); ?></h1>
    <?php the_content(); ?>
    <?php the_author(); ?>
    <?php the_post_thumbnail(); ?>
    <?php the_excerpt(); ?>

    <h2>Custom Fields</h2>

    Price <?php print_custom_field(‘price’); ?>
    Price details <?php print_custom_field(‘price_details’); ?>
    Availability <?php print_custom_field(‘availability’); ?>
    Go to the store: “>Click here
    Brand <?php print_custom_field(‘brand’); ?>
    SKU <?php print_custom_field(‘SKU’); ?>
    EAN <?php print_custom_field(‘ean’); ?>
    Shipping <?php print_custom_field(‘shipping’); ?>
    Delivery time <?php print_custom_field(‘delivery_time’); ?>

    <?php comments_template(); ?>

    <?php endwhile; // end of the loop. ?>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    —————————————————————–

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Not sure if I can help troubleshoot “messed up” — it’s not specific and it does not qualify as an error unless there is an actual PHP error going on (in which case that should be posted).

    Keep in mind that templates are completely separate from the CCTM. I’ve tried to show examples of simple templates demonstrating how to retrieve and format custom data, but each custom data model requires a custom template to format it. An automated solution for templates really isn’t possible when the data is varied, but unfortunately WP templating is rather confusing once you deviate off the beaten path of posts and pages.

    momilc

    (@momilc)

    ok, now I’m stuck. thx anyway

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Ok, if you can provide more details then someone might be able to help.

    Panjing

    (@panjing)

    Hi, I’m having the same issue.

    I’ve discovered that appending:

    ?post_type=yourposttype

    to the end of the single post url shows the page.
    I haven’t had luck with appending this query string to the url via rewrites, but maybe this is useful.

    This is what my rewriteRule looks like. If anyone has suggestions that would be great.

    RewriteRule ^work/projects/([a-zA-Z0-9-]+)([/]*)$ /work/projects/$1/?post_type=project [R,L]

    Thanks

    Panjing

    (@panjing)

    I was able to get it working with this RewriteCond:

    RewriteCond %{QUERY_STRING} !^post_type=project
    RewriteRule ^work/projects/([a-zA-Z0-9-]+)([/]*)$ /work/projects/$1/?post_type=project [R,L]

    which stops the infinite loop.

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Sounds like it’s related to this: https://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=534

    If you change the permalink settings, does the issue persist?

    Panjing

    (@panjing)

    Hi, Thanks for the great plugin.
    I changed the hierarchy setting and it didn’t resolve the issue which is odd because it did work on another site.
    Is wordpress not querying the post_type before the loop and has to be told (in the url) what post_type it needs to query?
    Also, before I tried to fix this I wasn’t getting a loop redirect, i was just getting the 404 error like other have been getting.

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Hmm… maybe the problem is environment related? E.g. were there edits in the .htaccess file or was there some redirect plugin installed in one environment and not in the other?

    Yes: the url should dictate the post-type and post being queried, but WP’s mechanisms for this are massively confusing and inefficient and subject to change without notice (thus the broken functionality with the CCTM and WP 3.8)

    Panjing

    (@panjing)

    I have Better WP Security and Yoast SEO, other than that no edits have been made to the .htaccess file. I disabled those two plugins as well but it didn’t fix the issue.
    Do you recommend any other solution and does this seem consistent with the issues you’ve been hearing about?

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Disabling permalinks is the easiest way to troubleshoot this. Environment issues are the hardest to troubleshoot… it’s important to figure out why the solution worked in one environment and failed in another.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘single post not showing’ is closed to new replies.