Adding pagination to my theme [closed]

$supernews_cat_post_args = array( ‘posts_per_page’ => $supernews_number, ‘no_found_rows’ => true, ‘post_status’ => ‘publish’, ‘ignore_sticky_posts’ => true ); This is the code where you should add the pagination. Changing it to: $paged = ( get_query_var( ‘paged’ ) ) ? get_query_var( ‘paged’ ) : 1; $supernews_cat_post_args = array( ‘posts_per_page’ => $supernews_number, ‘no_found_rows’ => true, ‘post_status’ => ‘publish’, ‘ignore_sticky_posts’ … Read more

My theme didn’t appear sidebar area

please Function.php file function twentyseventeen_widgets_init() { register_sidebar( array( ‘name’ => __( ‘Blog Sidebar’, ‘twentyseventeen’ ), ‘id’ => ‘sidebar-1’, ‘description’ => __( ‘Add widgets here to appear in your sidebar on blog posts and archive pages.’, ‘twentyseventeen’ ), ‘before_widget’ => ‘<section id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</section>’, ‘before_title’ => ‘<h2 class=”widget-title”>’, ‘after_title’ => ‘</h2>’, ) ); … Read more

I need to edit a widget, with no dashboard access

It’s a text widget, I think. If you need to modify title/content text then you need to modify in database (as you’ve no dashboard access*) If you need to change div structure for that widget, then you code in child theme. [*Note: if you got Database access then you can manage dashboard access too.]

Loop through Widgets in sidebar using widget array number?

I’m using this modification of the original post by birgire, but I don’t know if it’s “ok” to use wp_get_sidebars_widgets(); in this manner. function wpse_show_widget_alt( $index, $id ) { global $wp_registered_widgets, $wp_registered_sidebars; $did_one = FALSE; //This built-in func isn’t meant for theme or plugin development. //I don’t know any other way to list widgets in … Read more