php – Add a custom post type before the custom taxonomy page

A good part of the day for everyone.

I have a taxonomy page attached to a specific custom post type.
When I go to the taxonomy page, the URL does not contain a custom post type.

Example: http://sajda.shop/type/top/kurtki/ – Taxonomy Page
Example: http://sajda.shop/products-men/ – page "Custom Post Type"

Can you combine it like this?

http://sajda.shop/products-men/type/top/kurtki/

Taxonomy created through the CPT user interface.

Name: product type

Label: Субкатегории

singular_label: Субкатегория

Description: ""

public: true

publicly_queryable: true

hierarchical: true

show_ui: true

show_in_menu: true

show_in_nav_menus: true

query_var: true

query_var_slug: ""

circumscribe: true

rewrite_slug: type

rewrite_withfront: true

rewrite_hierarchical: true

show_admin_column: true

show_in_rest: true

show_in_quick_edit: ""

rest_base: ""

rest_controller_class: ""

meta_box_cb: ""

Sale – High Quality EDU, TECH, Health, Finance Post / Link.

Embed

HTML:

BBCode:

Link picture:

Solve unwanted white "waves" and "Pacman squares" in low light conditions – post with Google Photos

After op commented that my picture was underexposed, I tried posting it with Google Photos. But when I increased the exposure, I saw some unwanted white "waves" or rows in the photo. The margins of these lines look like "Pacman squares" when zoomed in. The original image is captured by 1: 8, 30 sec., ISO 200, EC-1. Shooting with the mirrorless Fujifilm X-T100 camera with a focal length of 15 to 45 mm, a maximum aperture of 3.61 and a pattern measurement. What can I do during the shoot and during the post to solve them? I started taking pictures less than a week ago and I want to learn as much as possible. Thanks a lot ! :]

Original picture
Edit through Google Photos

OP comment is from this thread:
How do I take a photo so that the moon does not have bright "rays"?

Send NFE XML via POST method

Guys, I need to generate NFE PDF from your XML.
I am trying to use the WEbdanfe API.

However, I get feedback that no file has been sent.
Where can I be wrong?

        HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.webdanfe.com.br/danfe/GeraDanfe.php");
        byte() bytes;
        bytes = System.Text.Encoding.UTF8.GetBytes(arquivoXml);
        request.ContentType = "text/xml; encoding='utf-8'";
        request.ContentLength = bytes.Length;
        request.Method = "POST";

        Stream requestStream = request.GetRequestStream();
        requestStream.Write(bytes, 0, bytes.Length);

        requestStream.Close();
        HttpWebResponse response;
        response = (HttpWebResponse)request.GetResponse();
        if (response.StatusCode == HttpStatusCode.OK)
        {
            Stream responseStream = response.GetResponseStream();
            string responseStr = new StreamReader(responseStream).ReadToEnd();

        }

Show two custom post types and their posts on the category page

I have two custom post types "Articles" and "Messages" and both use the same categories
like (auditing, income, taxes). I would like the post to appear when the Audit Category page opens: Enter image description here

The code I've already tried on archieve.php doesn't work:

 'articles',
        'post__not_in' => array( get_the_ID() ),
        'posts_per_page' => 5,
        'cat'     => $cats(0)->term_id,
        'meta_query' => array(
                    array(
                    'key' => 'recommended_article',
                    'value' => '1',
                    'compare' => '=='
                        )
                    )
    );
    $query = new WP_Query( $args );

?>  

have_posts() ) : while( $query->have_posts() ) : $query->the_post(); ?>   




Add a custom taxonomy to a custom post type

I created a custom taxonomy and wanted to add it to the side menu of my custom post type "Portfolio" (in the administration area). My custom taxonomy will not load, but the default taxonomy ("category") will not load. What have I missed?

add_action( 'init', 'add_taxonomies' ) );    
function add_taxonomies() {
    register_taxonomy(
      'related_service',
      'portfolio',
      array(
        'label' => 'Related Services',
        'public' => true
      )
    );
  }

add_action( 'init', 'register' );
    function register() {
      register_post_type( 'portfolio', array(
        'label' => 'Portfolio',
        'public' => true,
        'show_in_rest' => true,
        'taxonomies'  => array( 'category', 'related_service' )
      ) );
    }

jquery – Doubts about submitting information using the POST JavaScript method

I use JSON Server for testing in a project. I've created a Javascript object that contains other objects, similar to the following code.

aluno = {
"nomeAluno": "Mayki",
"materia1":{"Ano1Med": "9.0", "Ano2Med": "9.38", "Ano2Med": "8.27", "Disciplina": "Matématica"},
"materia2":{"Ano1Med": "9.0", "Ano2Med": "9.38", "Ano2Med": "8.27", "Disciplina": "Qruimica"}
}

I send the object to the server using the POST method

$.post('http://localhost:3000/alunos',aluno);

However, the content stored on my server is a single object with all the information instead of grouped objects.

{
"nomeAluno": "Mayki",
"materia1(Ano1Med)": "9.0",
"materia1(Ano2Med)": "8.27",
"materia1(Disciplina)": "Matématica",
"materia2(Ano1Med)": "9.0",
"materia2(Ano2Med)": "8.27",
"materia2(Disciplina)": "Qruimica",
"id": 8
}

I also tried to send objects within an array.

var materia1 = {"Ano1Med": "9.0", "Ano2Med": "9.38", "Ano2Med": "8.27", "Disciplina": "Matématica"};
var materia2 = {"Ano1Med": "9.0", "Ano2Med": "9.38", "Ano2Med": "8.27", "Disciplina": "Qruimica"};

var alunoteste = {
"nomeAluno": "Mayki",
"materias":(mateiria1, materia2)
}

$.post('http://localhost:3000/alunos',alunosteste);

However, the content stored on my server remains a single object with all the information.

{
"nomeAluno": "Mayki",
"materias(0)(Ano1Med)": "9.0",
"materias(0)(Ano2Med)": "8.27",
"materias(0)(Disciplina)": "Matématica",
"materias(1)(Ano1Med)": "9.0",
"materias(1)(Ano2Med)": "8.27",
"materias(1)(Disciplina)": "Qruimica",
"id": 11
}

What would be the right way to send, so I can save the objects separately?