• I must be missing something — I can’t figure out how to hide the custom fields on a Page.

    Under Template Options, I’ve set Post Type to “post” only, & added “page.php” to the Page Template file names settings.

    Under Auto Hook of ‘the_content()’, for Hook #0 I’ve selected Before the content, Post Type “post” only, [cft format=0] for the Content.

    I haven’t selected “Page” anywhere, so why are the custom fields showing up on my pages? Is there any way to turn that off?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Mr. Shiv,
    Thank you for letting me know the case. I found a bug about Auto Hook of the_content(). I fixed it in the latest version 1.5.7. So please upgrade and try it out. Thanks.

    Thread Starter Mr. Shiv

    (@mr-shiv)

    Thanks Mr Hirokai, it’s better, but still not working right. Again, perhaps I’m missing something. I would like to display a set of custom fields for each post, not just on the single-post view, but also on category archives, the index page, etc.

    With your update, I can hide the custom fields on Pages, but doing that also hides them on post listing pages, such as index.php or listings by category (?cat=nnn) or date (?m=200911).

    Thread Starter Mr. Shiv

    (@mr-shiv)

    Well, I “fixed” this on my own — I’m just not using the “Auto-hook of ‘the_content()’ (Experimental Option)”. Instead, I added the following to my theme templates, where it’s needed:

    <?php echo do_shortcode('[cft format=0]'); ?>

    In my case, I’m inserting that above the_content(), but it could go anywhere in the Loop.

    Shiv

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Custom Field Template] How to hide custom fields on Pages?’ is closed to new replies.