Questions tagged [categories]
Categories are groupings of information relative to a certain criteria. Use this tag for questions related to handling information of and related to a categorical nature.
4,567
questions
0
votes
0
answers
15
views
how do I access arguments using Modal route.of(context) (Named Route) from Categories to Sub-categories in developing an OLX clone, 2022
I'm developing a classified listing app like the OLX but I currently have challenges accessing the subcategories from the Categories widgets. Whenever, any category is clicked, I'm expecting such ...
0
votes
1
answer
38
views
Restrict "subcategory" based on other "category" column
I'm creating a SQLite database where I have 3 tables:
transactions, categories, sub-categories
in the transactions table, there is a column "category" with a foreign key to the categories ...
-1
votes
0
answers
30
views
Google Data Studio | how to categorize data with CASE function when multiple matches possible? [closed]
I need to categorize the data in one of my dimensions in Google Data Studio.
The dimension contains tags like "blue" / "green" / "red" and sometimes one entry in my ...
0
votes
0
answers
44
views
How to get the selected categories for an CE in the selected language
I've seen Georg Ringer adding the categories trough the controller, I'm trying to get a ViewHelper to do this ...
<?php
namespace Vendor\Extension\ViewHelpers;
use TYPO3\CMS\Core\Utility\...
0
votes
0
answers
35
views
how do i convert this function based view to a class based view?
i recently created a category system but the problem is that when ever i go to another page that isn't the home page, all the categories go away because i haven't referenced them. i found that by ...
0
votes
0
answers
23
views
.Net 6 Show Categories And Dropdown For Subcategories In View
I try to make a header menu concept. Actually i make parent categories but i coudln't figure it out how to show dropdown for sub categories in view. Only difference between category and sub category ...
0
votes
3
answers
50
views
How to create your own category type codes?
I have this housing dataframe that I'm working with in Python. One of the columns contains house "grade" data, which is based on an actual official county grading system. The houses are ...
0
votes
1
answer
22
views
Retrieve category description when using wp gridbuilder
How to retrieve the category description when using a filter like wp Gridbuilder?
I created a sort filter for the categories, when clicking on a category the url looks something like this: domain.com/...
0
votes
1
answer
23
views
How to change product category slug in bulk in Woocommerce?
I am working on a Woocoomerce site with many categories.
I have to add some text at the end of the categories (suffix) slug. Like "klm".
How to change product category slug in bulk in ...
0
votes
0
answers
12
views
How to ensure widget compatibility after changing Woocommerce permalink?
In the Woocommerce public URL structure, I'm just trying to define the category.
For example(1),
Electronics > Computer and Tablet > Computer
In the category structure, the URL should be as ...
-1
votes
0
answers
26
views
Select categories subcategories and count results
I've the following structure in my application:
Category 1 (30)
Subcategory 11 (5)
Subcategory 12 (25)
Category 2 (6)
Subcategory 21 (2)
Subcategory 22 (4)
What I'm trying to achieve is: if I ...
-1
votes
0
answers
30
views
Flask [Python] assigning flash categories to iterated variables
I'm trying assign flash categories to an iterable variable that will generate within a form.
My HTML:
<select name="values" size="10" multiple>
{% with cols = ...
0
votes
1
answer
23
views
how to remove post "categories" from showing up on the the hamburger/toggle menu in wordpress
I'm trying to find some CSS to help me stop having "post page categories" from showing up on the hamburger/toggle menu on wordpress. For example here, i'm making www.byjgk.com and when the ...
0
votes
1
answer
29
views
R Create event ID based on category group [duplicate]
I have a column (called eventCat) in my data frame of 5 factors (Drought, Dry, Normal, Wet, Storm) e.g.
eventCat
Dry
Dry
Drought
Drought
Wet
Storm
Storm
Normal
Normal
Dry
Dry
I want to provide an ...
0
votes
0
answers
13
views
Set category image from most recent post featured image
I couldn't find any topic yet related to my question.
I'm having a block in the Gutenberg editor in Wordpress which shows several post categories.
I'm able to add an image to the post categorie, but ...
0
votes
2
answers
36
views
Calculate and plot mean + confidence interval for multiple categories with poisson distribution in R
I have a very hard time with making a plot of the mean + confidence interval for my dataset.
My dataset consists of 2 columns, to simplify:
df$category<- c("a", "d", "a&...
0
votes
1
answer
37
views
Create a new value output if the values of another column do not match
I am working with some complicated patient health data and would like to simplify categorizing the types of insurance patients use. However, some patients use multiple insurance types to pay for a ...
0
votes
0
answers
30
views
VariableDoesNotExist at /blog/blog_posts/ Failed lookup for key [categories] in [{'True': True, 'False': False, 'None': None}, {}, {},
I trying to create categories with MPTT and I get this error:
eVariableDoesNotExist at /blog/blog_posts/Failed lookup for key [categories] in `enter code here`[{'True': True, 'False': False, 'None': ...
0
votes
1
answer
30
views
Scraping product category through python
I want product category alongside with the name of product. I've tried this code but it doesn't work. In my code the list "key" contains all the product categories.
from bs4 import ...
1
vote
0
answers
27
views
Sorting code for categories in Elementor through Wordpress
when I try to add some theme-specific categories grid on Elementor through Wordpress, it adds them randomly in the list, giving it a rather disorganised and difficult-to-understand appearance ...
0
votes
0
answers
46
views
Create nullable foreign key laravel [duplicate]
I am trying to add foreign key to my existing Posts table via migration. Categories table now empty and created before migration:
Schema::create('categories', function (Blueprint $table) {
$table-&...
0
votes
0
answers
40
views
Display only sub-category on Woocommerce single product pages
I managed to hook wc_get_product_category_list to every products displayed on the archive page.
Now I would like only to display the sub-category from a specific parent category for each product.
...
0
votes
1
answer
25
views
How to make model for sub-category and category for product in django?
I have to make product model in django where when we select the the main category which is foreign key then we have to select sub category, problem is that it will show the all sub category. it have ...
-1
votes
0
answers
17
views
adding category with widget in elementor
I want to add Category to my Website using WordPress elementor
but I search in widgets and Couldn't find it
I even search to find Code and use it in ShortCode but Can't Solve my problem
Do you Know ...
0
votes
0
answers
42
views
Error with categorical dataset Seaborn scatterplot
I have converted numerical to categorical data to be used in the legend of a Seaborn scatterplot.
import pandas as pd
import seaborn as sns
data = [['Sample_1', 130, 325, 1989], ['Sample_2', 128, 348,...
0
votes
1
answer
39
views
show list of records chosen by a category in a category tree on a separate page
TYPO3 11.5.12, events2 8.0.1
I get the used categories of a calendar (https://www.my-domain.de/lehre/kalender) in a category tree with the following fluid
<ul>
<f:for each="{...
0
votes
0
answers
35
views
Select primary category for slug on woocommerce product
I have some products with multiple categories. Is it possible to select which category to show in the ulr/slug?
This is my product slug configuration /p/%product_cat%/
Thanks
0
votes
0
answers
25
views
How to structure wordpress category base, category pages and single post urls
Please bear with me. This problem has been eating at me for years.
I have a website with three categories [news][media][others].
Wordpress Reading Settings front-page set to static page, post page set ...
0
votes
1
answer
75
views
Custom Button On WooCommerce Single Product Page For Specific Categories
Hello This Below Code is working fine but this is not inline to "Add to Cart" button. I Want This Custom Button To Inline Add To Cart.
add_action( 'woocommerce_single_product_summary', '...
0
votes
0
answers
26
views
Display Product_Category tag above the product titles in archives page
I have a shop that sells pictures.
Each picture is sub-categorized by its artist.
I want the artist name (sub-category) to display above the product title.
The following code targets the place I want ...
0
votes
0
answers
27
views
I want to create an additional product category selection system in woocommerce admin edit product
I want to create an additional product category selection system in the woocommerce admin. It's like a second product category filter from woocommecer
Like the picture that I show
So is there a way to ...
1
vote
1
answer
29
views
Recursively Populate Parent n level
I have a category Model which looks like this
const mongoose = require("mongoose");
const { Schema } = mongoose;
const { ObjectId } = Schema;
const category = {
name: {
type: String,
...
1
vote
2
answers
66
views
R to calculate the unique count for Overlap Categories
I have been so frustrated to count the number of clients who made conversion or not in the 3 single categories (app, desktop, web) scenarios and the rest of the overlapping categories (app & Web, ...
-1
votes
1
answer
21
views
How to I can display products count after each categories title in the woocmmerce shop page?
Please check the captured image. I want to display the products count number after each categories title
0
votes
1
answer
26
views
how to create a column that determines if a value is missing in a variable in R
I am trying to identify if a column has a missing number category based on a max.score. Here is a sample dataset.
df <- data.frame(id = c(1,1,1,1,1, 2,2,2,2,2, 3,3,3,3,3),
...
0
votes
2
answers
38
views
Create function to categorize BMI in multiple dataframes in R
This is my first post here and I'm newer to R so I apologize if this post is worded weird.
I am working on an analysis of a large dataset for a single year. I want to categorize continuous BMI data ...
0
votes
0
answers
11
views
Problem with WP categories/taxonomy & PHP fatal error after v.6.0 update
After updating WP to v.6.0 (translated/greek language version), I’m facing a posts categories/taxonomy problem.
Things I’ve noticed about the problem in two separate website instances (official - live ...
0
votes
1
answer
36
views
How can I create a rolling mean on a category instead of a float?
I have a column in my data frame with a category. I know how to do a rolling mean on a column with float values:
df['rolling_mean'] = df.categorycolumn.rolling(10).mean()
But I do not have numbers in ...
-1
votes
1
answer
30
views
Create categorical variable from previous columns in R
I have been trying to create a new categorical variable from previous binary variables. All the binary variables I'm trying to include (cough, fever, etc...) have values of either '1' or '0'.
This is ...
0
votes
0
answers
14
views
Reconding dbl+lbl variables
I need to recorde some variables I imported using haven.
The variables are dbl+lbl labelled.
0 = [no]
1 = [yes]
I need to recode this variable to
1 = [yes]
2= [no]
I used:
data_MUENSTER$gender[...
0
votes
0
answers
28
views
Critical Error on wordpress php code when listing custom posts from a category
Recently having problems probably because of a wordpress update. This was working and now it isn't. I am using advanced custom fields to grab the category id. Any one know what is going on here?
<?...
0
votes
0
answers
37
views
I Need To Receive A Notification When An Outlook Calendar Appointment Changes Color/Category
I have access to a shared Outlook calendar that was created by someone else that contains color-coded categories for each appointment. It is used to track the progress of a particular job. As the ...
0
votes
0
answers
105
views
Plotting categorical raster data with matplotlib imshow - how to get colors right
I'm trying to plot a raster image 'test_img.tif' with plt.imshow(). It is a landcover image and every unique value is a different landcover class. The problem is that the cmap doesn't seem to set the ...
0
votes
2
answers
27
views
How do I categorize items in a list?
dataset = ['Apple', 'Banana', 'Mango', 'Grape', 'Pineapple',
'Lettuce', 'Cabbage', 'Spinach', 'Carrot', 'Cauliflower']
ran = random.choice(dataset)
fruit = ['Apple', 'Banana', 'Mango', '...
1
vote
1
answer
28
views
Show only product with special prices
Is it possible to show only products with special prices?
I put {% if product.special %} in my product_card.twig, and that works fine but then my pagination doesn't work correctly. It still shows ...
0
votes
0
answers
49
views
Is it possible to use the "Pages in category..." list in mediawiki in a template without an extension?
I would like to use a category page as a template to show the "Pages in category..." on another page, but when I attempt to template the category page it only shows the details written on ...
0
votes
1
answer
35
views
How can I create a column of averages in a dataframe that is sorted by a category in r?
I'm making a plot of frequency(x-axis) to size(y-axis).
I currently have a data frame which has a column with categories (as an example category 1, 2, 3 4....), and one with the number of data points ...
0
votes
1
answer
23
views
How to select a specific (WP) category in an if-statement in PHP?
I've been trying to make posts from a specific category private in wordpress (php) but I cannot seem to make it work.
I've tried this:
function force_type_private($post) {
if (...
1
vote
2
answers
41
views
Category Condition on multiple columns
I have a data set as below:
ID A1 A2
0 A123 1234
1 1234 5568
2 5568 NaN
3 Zabc NaN
4 3456 3456
5 3456 3456
6 NaN NaN
7 NaN NaN
Intention is to go ...
0
votes
0
answers
76
views
how to change the active/selected element position in the category with slick slider
is it possible to show the active/selected element in the screen visible while selected, with the slick slider?
currently, I have a category on the page that has a swipe/slide feature implemented with ...