Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter kesking7

    (@kesking7)

    Third paragraph; “<?php echo get_template_directory_uri(); ?>/img/instance.jpg”*

    This is how normally we add images in PHP, but I would like to do it in JS.

    Thread Starter kesking7

    (@kesking7)

    Hi,

    Thank you for your assist. I’ve already checked the documentation link. Since I’ve started getting into WordPress theme development recently, I thought that might be related to the way of how dynamic websites functioning. Because, when I tried to implement the function on the static website all was good.

    Have a good one!

    Thread Starter kesking7

    (@kesking7)

    As I progressed on this topic, I came up with this hedge.

    After I specified the number of posts per page like “‘posts_per_page’ => -1”, the posts are not displaying correctly. Other than that, I’ve tried to put the value of “1” the only error is being that all posts in this section are just calling from one content/post.

    I’ve shared the screenshot of the error here to explain better.

    Thank’s in advance.

    Thread Starter kesking7

    (@kesking7)

    OK,

    I am so thankful for your time. Have a good one sir!

    Thread Starter kesking7

    (@kesking7)

    Alright,

    How should I implement the rest of the code after this? Should I keep it the same or sth? And also, I should write these codes to the page template that I’m using right?

    Thank you for your precious help.

    Thread Starter kesking7

    (@kesking7)

    Firstly, I feel sorry for being unclear. I’ll create 2 separate pages, blog & news. Also, I was planning to create 2 categories for blog & news.

    I would like to display selected featured posts that belong to these categories on the home page. Therefore, I was planning to create a “featured” category and after that, I was going to assign the posts into these categories. So I can display them on the home page.

    For instance, If I would want to change the featured posts in the future, I would like to be able to update them from the wp panel. I may be assigning one post to 2 categories and so I can display it for one news page and for one featured posts section on the home page.

    I hope that makes sense?

    Shortly, I would like to display specified posts from news & blog.

    Thanks in advance.

Viewing 6 replies - 1 through 6 (of 6 total)