Forum Replies Created

Viewing 4 Topics - 1 through 4 (of 4 total)
Author Posts
June 3, 2014 at 8:23 pm in reply to: Custom fields when adding a project 21404
matt matt

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
June 2, 2014 at 10:41 pm in reply to: Custom fields when adding a project 21366
matt matt

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.

June 2, 2014 at 9:12 pm in reply to: Custom fields when adding a project 21365
matt matt

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

June 2, 2014 at 8:10 pm in reply to: Custom fields when adding a project 21363
matt matt

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

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