Exluding "pages" from query_posts

I have a page that lists all posts with a certain category "news". The first result is always itself - the page! The page doesn't even have a category but for some reason is listed as one. I...

Parse error: syntax error, unexpected end of file in___

My site's theme has been working fine for a few days when suddendly without any coding changes I now am getting this error: Parse error: syntax error, unexpected end of file in...

AJAX function in the widget class

I created a WordPress Widget which get the recent posts, first get a specific number of posts, then there is a button to get more posts by AJAX. The full Widget code /* recent posts Widget ...

Wordpress Nav menu: doesn't show on custom post type category pages

I'm working on a WordPress site with 2 custom post types. For some reason that I cannot figure out, my nav menus are not displaying on my category.php pages. The header.php file is being called...

How can I get a list of posts for a category with WP-API?

Should be easy, but didnt find it in the WP-API docs.

Make site responsive through CSS

Hello guys im having problem with my [website][1] i just updated it from wordpress 3.4.1 and i wanted to make it responsive using CSS because i've tried a lot of Responsive plugins but it didnt...

Redirecting 404 to search with pagination on 404 template

First of all, I want to make it clear that I know what best practices are when it comes to handling 404 errors. However, I have this specific case where I may need a tailored approach. I'm...

Get a list of categories Wp API

Is there a way to get a list of categories (just the name and maybe date) from WP API? I don't want to see the posts within the category, just the categories.

String "returned" from function is broken, but "echo" works

I am working on my first Wordpress plug-in and it's been a lot of fun. I was using echo to show HTML, but it was showing on the top of the page. Doing some digging, I found out that I should use...

Cannot delete Categories, tags! Wordpress

I am trying to add, delete default categories under default word press post. (means not creating any custom taxonomy etc) Problem: Into the admin panel when I click on delete action for the...

Get posts with WP-REST without authentication

I'm new to WP-REST API and Wordpress in general. I've tried to get the posts list using the endpoint wp-json/wp/v2/posts but I get the classic 403 error. I'd like to ask if there is a way to...

WP API and JS : Cannot read property 'wp:featuredmedia' of undefined

I write a component to display a list WP posts on a page build with nuxt.js and I just can not display the featured image. The Vue Component <template> <div class="references__grid"> <div...

Manipulating injected HTML using vue.js and axios

I'm writing a page with vue.js and axios to grab the content of the newest post from a category of a WP site by means of REST API. The post content is always an ordered list (OL). The items of the...

Page editing redirects to Posts page (edit.php)

Just today, when I went on to edit one of the pages on my Wordpress website, and it redirected me to the Posts page (edit.php) when I pressed Update or Preview Changes and did not save my changes....

Filter posts by multiple taxonomies using checkbox and select

Hey so I'll try to make this quick. I'm trying to filter my custom post type(attractions) with two different taxonomies(city and category) in a front end form using a select dropdown and...

Post Type Order not working when applied filter

I'm using this Post Type Order plugin It's working well as ajax drag and drop things in Wp-admin custom post listing, but not reordering when we filtered posts by category. For example, It's...

Get and display the product category featured image in Woocommerce

I'm making my first theme and everything is progressing real fast thanks to all the assistance offered by The Loop and WooCommerce's SDK. Then today I spent an entire day failing to do something...

Retrofit Json some data returns null

Some values ​​return null. BetterFeaturedImage betterFeaturedImage null is returning. Outside the main Pojo class there are 31 more. Although I do serializable classes, some values...

WordPress | Post Query | Query on post categories to create sub-category filter and applying it to an Ajax filter in my function file

I'm struggling to get my portfolio page's filter to work. I have quite a good knowledge of WordPress and cannot seem to... Aims: Create a filter with only the categories that are a subcategory of...

Wordpress JS error when trying to add a new category to the product admin page

To summarise the issue, in the Wordpress back end go to products, add new. When i click "+ Add new category", fill in the box and click the "add new category" button nothing happens. The new...

WordPress page titles don't show up

I inherited a site in progress. My client had another developer start the site, ended the relationship with the previous developer some time ago, and recently asked me to continue the project. The...

TypeError: this.posts.filter is not a function using Vue js and wordpress api

I'm trying to fetch some posts in wordpress using the formidable pro api and vue js. The data loads correctly initially, however, I get TypeError: this.posts.filter is not a function when I click...

How can I render my posts with my custom WordPress Gutenberg block by category?

I have been trying to create a Gutenberg block that displays a list of categories as checkboxes on my WordPress edit pages, and then displays on the frontend page a list of posts that are linked...

How to extend sorting order of Team Members

I'm using Business Lounge theme by RT themes with Elementor. Wordpress version is current (5.2.1) On the team page (Demo: https://businesslounge-demo.rtthemes.com/our-team/) there is a list of...

WordPress REST API v2 returning all images, not just from selected Post

I'm trying to add some fields to the REST API by editing the functions.php file. As I don't have a lot of experience with WP, i looked on how to do it and came up with the following...

Limit category list view in WordPress Post edit

I am trying to hide category list in WP admin when you are editing your post. As I have hundreds of categories the website is frozen until the category list is fully loaded. I would like to limit...

WordPress Categories not showing in sidebar (post-new.php)

When adding or editing a post, categories are not showing in the sidebar - the area is here but the list is empty. In the console (JS), I have these errors : (WARNING) [DOM] Found 2 elements with...

Pass Object details to another view [SwiftUI]

Facing problem to understand how to move Object details to another view using NavigationLink, I have read many articles and watched video, they all do the same as I do except for the Preview...

Looping through post categories via WordPress REST API - React

i'm trying to figure out an issue with looping using the WordPress REST API. What I have: I am using the rest api category endpoint "/wp/v2/categories". I am looping through each category returned...

How to display menu alignmet from left to right in WordPress?

I am new to WordPress theme development and have an issue with alignment of menu items. It appears from top to bottom, and I want to change the items from left to right, and to add some features...