Forum Replies Created

Viewing 13 replies - 16 through 28 (of 28 total)
  • Can you post an example inside a spreadsheet of how this would work? What about dropdown menus?

    Thread Starter gera3d

    (@gera3d)

    Ok So I think I hear you saying all I need to do is add ‘public’ => true to the functions for each type and it will show up?

    That would be good new for me. seems like a simple fix. Yes I would need to do it to all the sites but I guess that life.

    Thread Starter gera3d

    (@gera3d)

    I sure can.

    {“procedure”:{“name”:”procedure”,”label”:”Procedures”,”singular_label”:”Procedure”,”description”:”List of Procedure at this office.”,”public”:”true”,”show_ui”:”true”,”has_archive”:”true”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”true”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”menu_position”:”5″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:”dashicons-plus-alt”,”supports”:[“title”,”editor”,”custom-fields”,”thumbnail”,”page-attributes”,”post-formats”],”taxonomies”:[“procedure-types”],”labels”:{“menu_name”:”Procedures”,”all_items”:”All Procedures”,”add_new”:”Add Procedure”,”add_new_item”:”Add New Procedure”,”edit”:”Edit”,”edit_item”:”Edit Procedure”,”new_item”:”New Procedure”,”view”:”View”,”view_item”:”View Procedure”,”search_items”:”Search Procedure”,”not_found”:”No Procedure foun”,”not_found_in_trash”:”No Procedure found in Trash”,”parent”:”Parent Procedure”}},”testimonial”:{“name”:”testimonial”,”label”:”Testimonials”,”singular_label”:”Testimonial”,”description”:”See how our practice is changing lives all over our state.”,”public”:”true”,”show_ui”:”true”,”has_archive”:”true”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”true”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”menu_position”:”6″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:”dashicons-groups”,”supports”:[“title”,”custom-fields”,”thumbnail”],”taxonomies”:[“testimonial-types”],”labels”:{“menu_name”:”Testimonials”,”all_items”:”All Testimonials”,”add_new”:”Add New”,”add_new_item”:”Add New Testimonial”,”edit”:”Edit”,”edit_item”:”Edit Testimonial”,”new_item”:”New Testimonial”,”view”:”View”,”view_item”:”View Testimonial”,”search_items”:”Search Testimonial”,”not_found”:”No Testimonial found”,”not_found_in_trash”:”No Testimonial found in Trash”,”parent”:”Parent Testimonial”}},”information”:{“name”:”information”,”label”:”Patient Information”,”singular_label”:”Patient Information”,”description”:”Patient Information”,”public”:”true”,”show_ui”:”true”,”has_archive”:”true”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”false”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”menu_position”:”5″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:”dashicons-clipboard”,”supports”:[“title”,”editor”,”trackbacks”,”thumbnail”,”post-formats”],”taxonomies”:[],”labels”:{“menu_name”:””,”all_items”:””,”add_new”:””,”add_new_item”:””,”edit”:””,”edit_item”:””,”new_item”:””,”view”:””,”view_item”:””,”search_items”:””,”not_found”:””,”not_found_in_trash”:””,”parent”:””}},”instruction”:{“name”:”instruction”,”label”:”Instructions”,”singular_label”:”Instruction”,”description”:”Get instructions on pre\/post operative procedures.”,”public”:”true”,”show_ui”:”true”,”has_archive”:”true”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”true”,”rewrite”:”true”,”rewrite_slug”:”instructions”,”rewrite_withfront”:”true”,”query_var”:”true”,”menu_position”:”7″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:”dashicons-welcome-learn-more”,”supports”:[“title”,”editor”,”custom-fields”,”page-attributes”],”taxonomies”:[],”labels”:{“menu_name”:”Instructions”,”all_items”:”All Instructions”,”add_new”:”Add New”,”add_new_item”:”Add New Instruction”,”edit”:”Edit”,”edit_item”:”Edit Instructions”,”new_item”:”New Instructions”,”view”:”View”,”view_item”:”View Instruction”,”search_items”:”Search Instruction”,”not_found”:”No Instructions found”,”not_found_in_trash”:”No Instructions found in Trash”,”parent”:”Parent Instructions”}}}

    Thread Starter gera3d

    (@gera3d)

    Yes.

    Here is the full code:
    https://pastebin.com/8kdfvaXq

    When I remove this code it fixes the CPT. Then I add this to the plugins custom area I get my archive area for the CPT.

    I wonder if I can fix this issue without removing this code from all our sites.

    Thread Starter gera3d

    (@gera3d)

    Ok I think I figured it out. The box was in fact checked.

    The issue seems to happened because I manually added Custom “Supports” in the functions file.

    register_post_type( ‘procedure’,
    array(
    ‘labels’ => array(
    ‘name’ => __( ‘procedure’ ),
    ‘singular_name’ => __( ‘procedure’ ),
    ),
    ‘supports’ => array( ‘title’, ‘editor’, ‘genesis-seo’, ‘thumbnail’,’genesis-cpt-archives-settings’ ),
    )

    If I remove this code and add it to the plugin it seems to work. I wonder if there is a work around without changing the functions file. I have this access a bunch of sites so I am trying not to change the code base.

    Thread Starter gera3d

    (@gera3d)

    I have no idea. Where do I find this setting? I did not change anything. It’s across the board doing the same thing on every site. Let me know If I can help get to the root of this.

    Hi can you add a page template on a new post type? Keep up the good work.

    Thread Starter gera3d

    (@gera3d)

    I have not explored this anymore. I would be interested to see how other people have figure this thing out. Messing with dropping cookies sounds like a pain but It does seem like the obvious solution.

    Does anyone have any links showing this in action.

    Same issue. I would love to see a solution for this.

    Thread Starter gera3d

    (@gera3d)

    <?php global $post; ?>
    <a href="<?= get_post_meta($post->ID, 'url', TRUE) ?>">
    <?php if (has_post_thumbnail()) { the_post_thumbnail(); } ?>
    </a>

    whoops here is the right code.

    Thread Starter gera3d

    (@gera3d)

    Hey Brazenly,
    Thanks for follow up with me on this issue. I already figured out what I was doing wrong. This was the code I ended up using to get the featured image then do a custom link via custom fields.

    <?php global $post; ?>
    ID, ‘url’, TRUE) ?>”>
    <?php if (has_post_thumbnail()) { the_post_thumbnail(); } ?>

    Thread Starter gera3d

    (@gera3d)

    Good call! That was it.

    I just ran into the same issue. This one looks like its the best but it has no forum =(.

Viewing 13 replies - 16 through 28 (of 28 total)