Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Custom fields when adding a project #21404

    matt
    Member
    Post count: 4

    So, I figured it out. It was simple per your direction ๐Ÿ™‚ Now, I just need to find out how to echo the information in /views/project/index.html

    Taking into account the action hook created above. Can you show me how you would implement the echo in the excerpt of code taken from the index.php file below

     <?php if ( $projects ) { ?>
    
            <?php foreach ($projects as $project) { ?>
                <article class="cpm-project">
                    <?php if ( cpm_is_project_archived( $project->ID ) ) { ?>
                        <div class="cpm-completed-wrap"><div class="ribbon-green"><?php _e( 'Completed', 'cpm' ); ?></div></div>
                    <?php } ?>
    
                    <a href="<?php echo cpm_url_project_details( $project->ID ); ?>">
                        <h5><?php echo get_the_title( $project->ID ); ?></h5>
    
                        <div class="cpm-project-detail"><?php echo cpm_excerpt( $project->post_content, 55 ); ?></div>
                        <div class="cpm-project-meta">
                            <?php echo cpm_project_summary( $project->info ); ?>
                        </div>
                        <div class="
                        
                        <footer class="cpm-project-people">
                            <div class="cpm-scroll">
                                <?php
                                if ( count( $project->users ) ) {
                                    foreach ($project->users as $id => $user_meta) {
    
                                        echo get_avatar( $id, 48, '', $user_meta['name'] );
                                    }
                                }
                                ?>
                            </div>
                        </footer>
                    </a>
    
                    <?php
    in reply to: Custom fields when adding a project #21366

    matt
    Member
    Post count: 4

    I have opened a topic on the WordPress support site. They seem to help out and cater a little more to those of us without a complete understanding of coding. I do appreciate your time. Pretty cool plugin, minus the problem I am having adding a new field.

    in reply to: Custom fields when adding a project #21365

    matt
    Member
    Post count: 4

    Thanks for your help. Kind of vague but helpful. Hope you are having a good morning.

    in reply to: Custom fields when adding a project #21363

    matt
    Member
    Post count: 4

    Would I place this new action in the function.php of the plugin?

Viewing 4 posts - 1 through 4 (of 4 total)