Creating a custom categories widget

The code below is an attempt to take the WP_Widget_Categories class and use it as the basis for a custom categories widget based on the default categories widget. I'm getting no output however and...

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 ...

How to make a YouTube video play automatically on WordPress home page

I need to add an action to my CHILD theme (functions.php). I need it to activate and launch a YouTube video and make it automatically play when a user opens the home page on the website. I am...

WordPress - only show (custom) posts that are tagged featured

I'm currently building a site which is based on the templatic events v2 theme. I have done some customization which is working fine, but this one is kind of out of my reach. The problem is as...

Wordpress Widget is not display on (AdminPanel)

I trying to make widget for display something but is not display on admin->appearance section. below code i write on functions.php file below function is working except widget. like menu,icon,...

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....

How to add image meta tag keyword for website search results?

I have an image that I only want to show when someone uses a certain keyword on my website search page: I just want to add <img src="cars.jpg"> and have this image show only when someone searches...

How to fetch an image on my server using php if echo

I want to display an image on my website only when someone searches for category flowers.. now the flowers category is numbered as 24 in my database therefore, my website auto generates the url...

Django CSRF_TOKEN issue with Edge only

I'm trying my django application through different browsers (Chrome, Firefox, IE11 and Edge) and I got an issue with the csrf_token and Edge only. This issue is in reference with my django...

Yii2 Kartik-v fileiput: Get uploaded images when wrapped in the array of $_FILES instead of $_POST

I am developing my app using the yii2-formwizard widget. I have gotten it working fine in all the other parts and even submits a single image perfectly. The problem comes when I try to submit...

Hook into elementor widget?

I am trying to find a hook that will let me add my own code into an existing elementor widget. For example they have the "post widget" which lets you display a list of posts based on the...

Django - Custom ModelMultipleChoiceField can't categorize choices based on their parent model

EDITS AVAILABLE BELOW! *My goal:* Category1 ----Option1 ----Option2 --Option3 Category2 ----Option1 ----Option2 etc. I have a parent model (Venue) and a child model (Amenity). A venue can have...

Displaying contents of directory(markdown files) in Gatsby using graphql

I'm using Gatsby/Netlify CMS stack and have been trying to display markdown file contents on the main page. For example, I have a directory in src/pages/experience that displays all of the...

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...

Flutter Push and Pop returning to wrong screen when browsing category lists and Bloc

So framework of an app consuming an api and i'm getting there. I have a category browse screen you can tap a cat and then browse then next level down and there's an AppBar provided back...

Where to code an array that will be used in both the content and a widget in a Wordpress blog

I've written some code to develop an array of meta for posts that are in the same category as the current post. (The code also reorders the list and assigns a key that I can use to append post...

Getting error -- type 'SocketException' is not a subtype of type 'widget' in flutter

My App is working properly on laptops means in the simulator but not on android phone. This error started when I have added a JSON connection. please help me in solving it. Android Screenshot...

How to pass JS user input to a function in Wordpress child theme functions.php using AJAX?

I need the data from var search_value in msearch.js to pass to the php variable called $woot in the child theme functions.php file so it can be the returned value for wtfwoot() and therefore used...

Filter posts based on category

I'm new in django and generally in programming. And now I write my first project - that will be my personal blog, it's almost done except one feature: I have list of categories shown on the page...

Expected argument of type "App\Entity\CategoryImage", "array" given at property path "images"

I try to insert images with relations OneToMany, but I get an error. Expected argument of type "App\Entity\CategoryImage", "array" given at property path "images". I have entities Category...

How to solve it when Flutter MaterialPageRoute navigates to a screen with black background?

I'm using Flutter for first time for one of my projects which is a Newspaper App. The problem takes place when I try to navigate from main.dart to newsfeed_for_other_category.dart using...

django class based view pass url parameter in create post to current category

lets's say that i have three categories (tutorials, news, jobs). and i have class based views to list all posts, list posts by category and create new posts. and sure post is the same model and...

Conveyor with Flutter - Handshake error when running .net web app locally

I am using Conveyor (a Visual Studio 2019 extension) to have my ASP.NET Core available to android emulators. This has worked perfectly up until now. I have developed Xamarin apps, UWP apps and...

How to Build a Drawer with a DrawerHeader and a ListView.builder

EDIT 2: After spending the whole day on this. I finally managed to work with the ListView.builder and my initial problem is no longer a problem... :). But now a more specific problem...

Build fail due to error in my GraphQL query

Field "category" is not defined by type MarkdownRemarkFrontmatterFilterInput. What does that mean, please advise. I am using Netlify CMS as Content Manager with Gatsbyjs frontend. I am using this...

Too many values to unpack (expected 2) in Django

`I want to render the checkbox in the template goals.html, what am i doing wrong here? Models.py The Goal is to capture the input There would be a set of goals and there should be 2 check boxes...

Django Class based UpdateView with Form for Multiple Uploaded Files

I have two questions in regards to the problem I am currently facing: Is it best practice in django to overwrite the post method in the CreateView? If it isn't do you write a form _valid function...

How can I add AJAX filters to an existing AJAX load more

I have a fully working AJAX load more button on my Wordpress posts. On click, it loads the next page of posts and appends them directly to the end of the first set. I now need to create category...

Symfony\Component\Routing\Exception\RouteNotFoundException Route [product.details] not defined

I am getting an routing error in my laravel project Symfony\Component\Routing\Exception\RouteNotFoundException Route [product.details] not defined....