Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
-
5 years ago in reply to: Post Interface Embeds into Custom Fields5 years ago in reply to: Post Interface Embeds into Custom Fields
Where should I put that closing tag every time I do it gives a syntax error
<tr><td><p> <label for="wpmedia_video_description"><?php _e( 'video description', 'wpmedia' ); ?></label><br> <textarea name="wpmedia_video_description" id="wpmedia_video_description" ><?php echo wpmedia_get_meta( 'wpmedia_video_description' ); ?></textarea> </p></td></tr></table> <?php } Or here add_action( 'save_post', 'wpmedia_save' ); /* Usage: wpmedia_get_meta( 'wpmedia_file_name' ) Usage: wpmedia_get_meta( 'wpmedia_additional_folders' ) Usage: wpmedia_get_meta( 'wpmedia_duration' ) Usage: wpmedia_get_meta( 'wpmedia_width' ) Usage: wpmedia_get_meta( 'wpmedia_height' ) Usage: wpmedia_get_meta( 'wpmedia_embed_code_youtube_vimeo_etc_' ) Usage: wpmedia_get_meta( 'wpmedia_video_description' ) */ </table> ?>
5 years ago in reply to: Post Interface Embeds into Custom Fields<?php add_theme_support( 'post-thumbnails' ); add_image_size( 'single-post-thumbnail', 590, 180 ); if ( function_exists('register_sidebars') ) { register_sidebar(array( 'name' => 'sidebar', 'before_widget' => '<div class="sidebarcontainer">', 'after_widget' => '</div><br>', 'before_title' => '<center><div class="sidebartitle">', 'after_title' => '</div></center>', )); } function wpb_total_posts() { $total = wp_count_posts()->publish; return $total; } add_shortcode('total_posts','wpb_total_posts'); function designsbykaci_numeric_posts_nav() { if( is_singular() ) return; global $wp_query; /** Stop execution if there's only 1 page */ if( $wp_query->max_num_pages <= 1 ) return; $paged = get_query_var( 'paged' ) ? absint( get_query_var( 'paged' ) ) : 1; $max = intval( $wp_query->max_num_pages ); /** Add current page to the array */ if ( $paged >= 1 ) $links[] = $paged; /** Add the pages around the current page to the array */ if ( $paged >= 3 ) { $links[] = $paged - 1; $links[] = $paged - 2; } if ( ( $paged + 2 ) <= $max ) { $links[] = $paged + 2; $links[] = $paged + 1; } echo '<div class="pagenavi">
- ' . "\n";
/** Previous Post Link */
if ( get_previous_posts_link() )
printf( '
- %s ' . "\n", get_previous_posts_link() ); /** Link to first page, plus ellipses if necessary */ if ( ! in_array( 1, $links ) ) { $class = 1 == $paged ? ' class="active"' : ''; printf( '<li%s>%s' . "\n", $class, esc_url( get_pagenum_link( 1 ) ), '1' ); if ( ! in_array( 2, $links ) ) echo '
- … '; } /** Link to current page, plus 2 pages in either direction if necessary */ sort( $links ); foreach ( (array) $links as $link ) { $class = $paged == $link ? ' class="active"' : ''; printf( '<li%s>%s' . "\n", $class, esc_url( get_pagenum_link( $link ) ), $link ); } /** Link to last page, plus ellipses if necessary */ if ( ! in_array( $max, $links ) ) { if ( ! in_array( $max - 1, $links ) ) echo '
- … ' . "\n"; $class = $paged == $max ? ' class="active"' : ''; printf( '<li%s>%s' . "\n", $class, esc_url( get_pagenum_link( $max ) ), $max ); } /** Next Post Link */ if ( get_next_posts_link() ) printf( '
- %s ' . "\n", get_next_posts_link() ); echo '
5 years ago in reply to: Post Interface Embeds into Custom Fields5 years ago in reply to: Post Interface Embeds into Custom FieldsI get nothing using the default 2020 theme because the theme is not calling anything so that is irrelevant.
As for the plugins deal I don’t really use any on the site and the ones I do use don’t affect it. FLV player is the only one doing this.
5 years ago in reply to: Post Interface Embeds into Custom Fields
Viewing 6 replies - 1 through 6 (of 6 total)