wp query – previous_posts_link & next_posts_link doesn’t generate any output

Hey I am using a WPQuery to loop through and show blog categories in posts. It’s in a page tempplate. has 21 posts and I want them to show 10 per page with navigation links for next pages of 10 posts but below code is not outputting that buttons

enter image description here

<div class="container-blog-post d-flex flex-wrap justify-content-start">

$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
        $args = array(
            'post_type'      => 'post',
            'category_name'  => 'blog',
            'posts_per_page' => 10,
            'orderby'        => 'date',
            'order'          => 'DESC', 
            'paged' => $paged

        $the_query = new WP_Query( $args ); ?>

        <?php if ( $the_query->have_posts() ) : ?>

            <?php while ( $the_query->have_posts() ) : $the_query->the_post(); 

                if(has_post_thumbnail()) {
                    $image = get_the_post_thumbnail_url();
                    $image = get_template_directory_uri().'/assets/images/default.svg';

                $url   = get_permalink();
                $title = get_the_title();
                $text  = excerpt(20);
                $date = get_the_date();

              <a href="<?php echo $url; ?>" class="single-post card">
                <figure class="image-wrapping">
                  <img src="https://wordpress.stackexchange.com/<?php echo $image; ?>" alt="">
                <div class="body-post card-body">
                  <h3 class="title-post card-title"><?php echo $title; ?></h3>
                  <p class="card-text line-clamp-2"><?php echo excerpt(10); ?></p>
                  <button class="btn-read-more arrow">Read more</button>
                  <div class="button-post">
                    <span class="date-post"><?php echo $date; ?></span><span class="author-post"><?php echo the_author(); ?></span>

            <?php endwhile; ?>
            <div class="previous">
                <?php previous_posts_link(); ?>
        <div class="next">
            <?php next_posts_link(); ?>
            <?php wp_reset_postdata(); ?>
        <?php endif; ?>  


terminal – iTerm2 freezing, how to I generate new and/or find existing crash reports or logs?

I start Anaconda Python 3.7.6 and run scripts from iTerm2 using macOS 10.15.7.

A few times a week iTerm2 suddenly freezes, and I have to use Quit from the application and start it again.

  • I loose some of the “backarrow history” which is troublesome for me.
  • I also worry about potential security issues.

I use matplotlib 3.1.3 all the time and I know there are some issues. So far I can’t exclude it from the list of possible causes.

From this issue I have found this explanation how to start a log, then I have to wait until the bug happens again then toggle it again to save some log.

  1. Are there other logs that are generated automatically that I could read?
  2. Are there other logs that I should generate?

update: I have supposedly just captured an issue. I restarted iTerm2 then toggled and clicked “ok” or affirmative on the dialogue box and it told me to look for /tmp/debuglog.txt and send it to the developers.

I can’t find that file anywhere.

enter image description here

javascript – Dynamic Generate Text box and live Search

<script type="text/javascript">
$(document).ready(function () {
    var count = 0;
  // add row
        $("#addRow").click(function () {
            var html = '';

  html +='<div id="inputFormRow">';
  html +='<div class="form-inline">';
  html +='<span class="input-group-text col-sm" id="">Obat</span>';
  html +='</div>';
  html +='<div class="form-inline">';
  html +='<input type="text" class="form-control col-sm form-control-sm" name="obat()" id="search" placeholder="Nama Obat">';
  html +='<input type="text" class="form-control col-sm-2 form-control-sm" name="jumlah_obat()" placeholder="Jumlah">';
  html +='<input type="text" class="form-control col-sm form-control-sm" name="aturan_obat()" placeholder="Aturan Pakai">';
  html +='</div>';
  html += '<button id="removeRow" type="button" class="btn btn-danger btn-sm">-</button>';
  html +='<table class="tables sortable">';
  html +='<tbody id="show-list">';
  html +='</tbody>';
  html +='</table>';
  html +='</div>';


              $(document).on('keyup', '#search', function () {
    let searchText = $(this).val();
    if (searchText != "") {
        url: "search.php",
        method: "post",
        data: {
          query: searchText,
        success: function (response) {
    } else {
  // Send Search Text to the server
  // Set searched text in input field on click of search button
  $(document).on("click", "td", function () {

        // remove row
        $(document).on('click', '#removeRow', function () {

    <form method="post" class="form-bordered">
<div class="form-control">
 <div id="newRow"></div>
 <button id="addRow" type="button" class="btn btn-info btn-sm">+</button>

How to generate or add balance in my btc testnet address

I am trying to add btc testnet, I have read that these following sites offers testnet btc but upon checking their servers were down


Is there any other platform or way I can add balance in my testnet address so I can try transferring and viewing transactions in test mode?

mining theory – How create / generate a coinbase transaction for a new block?

I am coding a miner program with C, and right now I need some info of how create / generate a coinbase transaction to add to the block before submit it to the bitcoin network. Someone can indicate any article / tutorial explaining this (i am searching for this for a while now, and finding nothing useful of this sorts).

What are the major methods i can follow to generate Leads for SEO? – SEO Help (General Chat)

Here’s a list of SEO strategies that will optimize your website, and help generate more leads from search engines:
Optimize Your Homepage & Inner Content. …
If you’re a local business, use local SEO strategies. …
Build an Active Blog & Optimize Your Blog Posts. …
Guest Posting. …
Use Alt Tags for Your Images.

I will be your expert and reliable virtual assistant and able to generate tasks as your requirements for $1

I will be your expert and reliable virtual assistant and able to generate tasks as your requirements

Hello There,

I am a professional and expert virtual assistant…I will do generate any kind of job’s as your requirements.

I am very punctual and formal in my work..I am expert in Social Media Marketing,Lead Generation & Email Marketing.

I have ability to provide different criteria and featured lead generation from various company websites and social networking sites.


1.Lead generation

2.Data Entry

3.Data Mining

4.Data Scraping


6.Web Research

7.Internet Research


9.Excel Job

10.Business promotion

Why you believe me??

1.punctual & Formal

2.Professional & Expert

3.Time on Delivery

4.100% satisfaction

5.24/7 Availability

….Once you hair me i guaranteed that you hair me again and again…..


plugins – How to dynamically generate multiple forms from a Template, based on user input?

I write to the community with the hope that someones can show me the correct way to solve my issue.

I’m trying to create a simple plugin that should generate multiple contact forms from a Form Template and save the data in to the WordPress Database.
The user should have the ability to choose (from the admin area) which fields to display in the form and then, through a Shortcode, the form will be displayed in the Frontend.

The Code I have is working for a unique form, but the goal would be to generate and save multiple forms to the database (not sure I should create a new table, or use an existing WP table). Then, to each form, a Shortcode would be dynamically assigned – eg: (contact_form id = “1”), etc. The generated data would then be displayed as a list table in the admin area, and the user should have the ability to add, update, and delete the generated forms.
I’ve heard about shortcode_atts() function; WP_List_Table Class, Form Tables, and Custom Post Types, but I’m not really sure how can I solve this issue.

Maybe someone can guide me in finding the proper way to deal with this issue, following the WordPress standards?

Thanks in advance!

Add menu page


 * Plugin Name: Generate multiple contact forms from Form template

function create_admin_pages (){
      add_menu_page( "Top Menu Page" ,"Top Menu Page", "manage_options", "top_menu_page", "top_menu_page_content_callback" );

            add_submenu_page( "top_menu_page", "General Options", "General Options", "manage_options", "top_menu_page", "top_menu_page_content_callback");
add_action( "admin_init", "create_settings" );
add_action( "admin_menu", "create_admin_pages" );

Top menu page callback function


function top_menu_page_content_callback()
    <div class="wrap">
    <form method="POST" action="options.php">
    <?php settings_fields( 'settings_group_1' );    
    do_settings_sections( 'top_menu_page' );

The settings API

function create_settings(){

register_setting( "settings_group_1", "contact_form_FirstName" );
register_setting( "settings_group_1", "contact_form_LastName" );
register_setting( "settings_group_1", "contact_form_Email" );
register_setting( "settings_group_1", "contact_form_Phone" );

add_settings_section( "section_2", "Contact-Form", "section_2_callback", "top_menu_page");

add_settings_field( "contact_form_FirstName", "First Name", "contact_form_FirstName_setting_callback","top_menu_page", "section_2" );
add_settings_field( "contact_form_LastName", "Last Name", "contact_form_LastName_settings_callback","top_menu_page", "section_2" );
add_settings_field( "contact_form_Email", "Email", "contact_form_Email_setting_callback","top_menu_page", "section_2" );
add_settings_field( "contact_form_Phone", "Phone", "contact_form_Phone_settings_callback","top_menu_page", "section_2" );


Settings Callback functions


function contact_form_FirstName_setting_callback(){

       $contact_form_FirstName = esc_attr( get_option( 'contact_form_FirstName' ) );
       echo '<input name="contact_form_FirstName" id="contact_form_FirstName" type="checkbox" value="1" class="code" ' . checked( 1, get_option( 'contact_form_FirstName' ), false ) . ' />  ';

function contact_form_LastName_settings_callback(){

       $contact_form_LastName = esc_attr( get_option( 'contact_form_LastName' ) );
       echo '<input name="contact_form_LastName" id="contact_form_LastName" type="checkbox" value="1" class="code" ' . checked( 1, get_option( 'contact_form_LastName' ), false ) . ' /> ';

function contact_form_Email_setting_callback(){

       $contact_form_Email = esc_attr( get_option( 'contact_form_Email' ) );
       echo '<input name="contact_form_Email" id="contact_form_Email" type="checkbox" value="1" class="code" ' . checked( 1, get_option( 'contact_form_Email' ), false ) . ' /> ';

function contact_form_Phone_settings_callback(){

       $contact_form_Phone = esc_attr( get_option( 'contact_form_Phone' ) );
       echo '<input name="contact_form_Phone" id="contact_form_Phone" type="checkbox" value="1" class="code" ' . checked( 1, get_option( 'contact_form_Phone' ), false ) . ' /> ';

function section_2_callback(){
      echo "Check the fields you would like to add to your form. <br> ";

The Form Template

//Template form Section

function custom_shortcode()

<form action="" method="POST">
    $contact_form_FirstName = get_option('contact_form_FirstName');
    if ($contact_form_FirstName == '1')
        echo '<label for="first_name">First Name</label><input  id="first_name" maxlength="40" name="first_name" size="20" type="text" required/><br>';

    $contact_form_LastName = get_option('contact_form_LastName');
    if ($contact_form_LastName == '1')
        echo '<label for="last_name">Last Name</label><input  id="last_name" maxlength="40" name="first_name" size="20" type="text" required/><br>';

    $contact_form_Email = get_option('contact_form_Email');
    if ($contact_form_Email == '1')
        echo '<label for="email">Email</label><input  id="email" maxlength="80" name="email" size="20" type="email" required/><br>';
    $contact_form_Phone = get_option('contact_form_Phone');
    if ($contact_form_Phone == '1')
        echo '<label for="phone">Phone</label><input  id="phone" maxlength="40" name="phone" size="20" type="text" required/><br>';
<input type="submit" name="submit">

add_shortcode('contact_form', 'custom_shortcode');

dynamic programming – Does this LCS algo generate all the CS or only all the LCSs?

The Wikipedia article on LCS has an algorithm that backtracks all the LCS strings. This link redirects to the desired bulletin in the article. The C table in the backtrackAll function is pre-calculated, if you go up a tad bit. C(i)(j) stores the LCSLength for given str1(1…i), str2(1…j).

enter image description here
(screenshot, for a quicker reference)

  1. My understanding is that it generates all the common sequences since either or both if conditions at the end are satisfied, which runs the program for the sub-cases. Once the last letters are matched, every string upto that point (with the current X(i) as the last letter) is printed.

I somewhere fail to digest the algorithm properly and completely. An explanation might help me very much.

  1. In the penultimate if, does changing writing the piece of code as R := R $cup$ backtrackAll(C, X, Y, i, j-1) (instead of R := backtrackAll(C, X, Y, i, j-1)) change anything? I feel that it doesn’t, given it’s a top down approach and it only unions with the empty set R = {} above. Note that R is already defined above and the if is reached only after going through that empty set definition step, which rules out the possibility of having an error output.