kesking7
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Image Path in WordPress Javascript FileThird 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.
Forum: Developing with WordPress
In reply to: NODE | Require is not defined(Uncaught Reference Error)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!
Forum: Developing with WordPress
In reply to: Calling Post from Specific CategoryAs 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.
Forum: Developing with WordPress
In reply to: Calling Post from Specific CategoryOK,
I am so thankful for your time. Have a good one sir!
Forum: Developing with WordPress
In reply to: Calling Post from Specific CategoryAlright,
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.
Forum: Developing with WordPress
In reply to: Calling Post from Specific CategoryFirstly, 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.