Categories
CMS Mastering Development Wordpress

Use Custom Post Type archive page for the taxonomies term archive page

In my wordpress theme I created a new custom post type ‘books’ with 2 taxonomies (‘series’, ‘genres’). when I visit the archive of the cpt ‘books’ (site.com/books), I list all the books. I added a custom frontend filter to get in this archive page books by taxonomy terms by passing an argument to the url […]

Categories
Mastering Development System & Network

Converting htaccess to Nginx ReWrite (autoconverting not working)

Hi there anyone happens to know Nginx rewrite rules? I’m trying to convert this Apache .htaccess to Nginx Rewrite, I already tried with online converters the homepage and dashboard once logged in work fine but the: news, list, video, music, polls and quiz sections aren’t working they give 404 I have 32 hours non-stop without […]

Categories
CMS Mastering Development Wordpress

How to get the top level parent term Advanced Custom Field values in the child terms

I am using Advanced custom fields in my product_cat taxonomy to display fields on my product category pages. I would like to be able to edit the top parent product category and have those changes reflected on both the parent and child pages. Here is the current code I am working with: add_filter(‘ocean_after_page_header’, ‘woo_product_cat_header’); function […]

Categories
Mastering Development

Unable to make use of the insert statement [closed]

$query = mysqli_query($con, "INSERT INTO staff_table VALUES (’45’,’$fname’,’$mname’,’$lname’,’$parent_mobile’,’$address’,’$dob’,’$username’,’$term’,’$section’,’$level’,’$date’,”,”,”)");

Categories
CMS Mastering Development Wordpress

ACF Gallery with Isotope filters

I’m trying to achieve a filtreable gallery taking custom categories for every media attachment. I’m using the ACF plugin and Isotope. I managed to show the filter and to display each category to every image, but when clicking on the filter nothing happens. Here’s the markdown: <!–output categories assigned to each photo via Enhanced Media […]

Categories
Mastering Development

How to return user input in react?

I am new to React and coding in general, and I am trying to build this simple flashcard app to get a better understanding of react. I know this code is very bad and it should probably be broken into more components, but I can’t figure out how to add an event handler to the […]

Categories
Mastering Development

Get index of a Term’s argument in Prolog

I need to get the index of a term’s argument in Prolog. Predicate arg/3 seems to do the opposite of what I need: arg(Index, Term, Value). arg/3 fails if Index is a variable, so it’s not possible to get the index of a given value and term. You guys know any other way to achieve […]

Categories
Linux Mastering Development

I can’t change the default config of qtile on arch

I have been trying since about a week with installing arch and Qtile, but the problem is that everytime I install it, even if I change the file default_config.py with what i want, when i reboot it shows the default config of qtile. I don’t know why it happens cause i tried compiling the file […]

Categories
Mastering Development

I want to enter data to database from dropdown menu but there is a error

Hello i want to enter data to database from dropdown menu <div class=”form-group row”> <label class=”col-lg-3″>Term</label> <select class=”form-control col-lg-6″ name=”term”> <option value=””>select</option> <option value=”first”>1st Term</option> <option value=”second”>2st Term</option> <option value=”third”>3st Term</option> </select> </div> when run this there is error unknown column i try to fix this but coudn’t can you help me INSERT INTO student_subject_class_marks(stu_id,sub_id,class_id,term,marks) […]

Categories
Development

Using classes to print out instance attributes based on user input in Python

I am new to programming and would like to practice by creating a small app, using Python. The app asks the user to enter a level and a term and the app will return the curriculum for the said level and term. I have tried before without using classes and only using nested dictionaries but […]