I've been coder for decades but I need to setup some microsites super-fast. I chose WordPress as the platform and I'm complete newbie to WordPress. The behaviour I need I know can do it programming. But the question is if this can be done "zero-code" in WordPress: Question Can I bind in-page "triggers" to "actions" natively in WordPress? Examples Whenever a user scrolls more than 80%, a new button is added. Whenever a user watches an embedded video hosted in …
I have a CAD-like system: users create Canvases and put different Objects on it. Sometimes users need to scale the Canvas and move all included objects to different positions and probably change their sizes. At the moment it's done manually, but there's a need to automate this process, I'm trying to do this using ML algorithms. For the train data I have a bunch of manually scaled canvases Initially I thought it would be a relatively easy task achieved with …
I am working with an auto-posting blog where the articles come through RSS Feed. There are lots of posts publishing every day automatically. Now I need to get a category automatically based on a word in the WordPress post title. For example: I have a category: "New York" and "Florida". If any post has the word "New York" in the title, then the category "New York" will select automatically during publishing. Similarly, if any post has the word "Florida" in …
I am just beginning a page, and for my current purposes it seems that the only extra things I need are a couple of extra fields for posts of a certain category. Because I only need to add a little information, I think that it might be appropriate to give posts belonging to this category custom fields using Advanced Custom Fields (aka ACF). However, I was thinking that later I might discover it is better to use custom post types, …
I don’t know why but WP is automatically adding id attributes to h2 tags. I am not supplying any id or class attribute and I don’t need it. Also, it’s adding type="1" to <ol> tag that’s not needed in my case. You can see it on this page: https://idioms.a2hosted.com/2022/02/15/its-not-brain-surgery/ Please help, how to stop it? I need this: <h2>Meaning</h2> <h2>Example Sentences</h2> <h2>Origin</h2> This is what WP doing with it. <h2 id="meaning">Meaning</h2> <h2 id="example-sentences">Example Sentences</h2> <h2 id="origin">Origin</h2>
I am creating a WordPress Network multisite blog in a university environment. It's set up in subdirectory mode, so that each new blog appears as a subdirectory off a common domain name. The Network authenticates against our corporate Active Directory using LDAP. Only Active Directory users may sign in. The first time a user signs in, our Active Directory plugin creates a WordPress account that corresponds to that user's Active Directory account. Each subsequent sign in, that account's properties are …
I have a website and I want to add automatically categories to my menu. I mean when I create new category it should appear in my menu. How I can make it? <?php wp_nav_menu( array( 'theme_location' => 'header', 'container' => '' ) ); ?> Home | Categories | Contact category1 category2 category3
I'm looking for a way to automatically assign two categories each time an author makes a blog post: General category (will always be the same for all authors). Author category, with de same exact name as the author. For example, assign to a new blog post from user Bilbo the generic category 'TLOFT' and the author tag 'Bilbo'. I'm sure this won't be really complicated, but I'm just starting and I get lost when away from html, css and minimum …
I am new to integrating Wordpress and Mailchimp. I have a Wordpress site that offers music courses. Within a course are several lessons. I drip the lessons weekly, so that each lesson starts on a Monday. I just added Mailchimp support via my site's composer.json by adding "require": { "mailchimp/marketing": "*" } I can now use the Mailchimp API via require_once ABSPATH.'/vendor/autoload.php'; use MailchimpMarketing\ApiClient as MailChimp; $mailchimp = new Mailchimp(); $mailchimp->setConfig([ 'apiKey' => MAILCHIMP_APIKEY, 'server' => MAILCHIMP_SERVER_PREFIX ]); So all …
I'm trying to use machine learning to impute missing data in series using some auto-ML libraries in python (so far : dabl, FLAML, auto-sklearn and AutoKeras). I know the way to detect overfitting in a "classical" way: that would be to plot test/train metrics while tuning your model. However in my case, I think of two reasons why I can't use that: first, I'm hopping to tune multiple models (due to physical considerations) ; that would amount to - at …
I'm a web editor that uses WordPress and my site has a bit of an annoying problem. We basically have tens of thousands of articles going back about ten years and we have to delete all of the images we posted in articles from around 2012 to 2018. The reason is that the then editor of the website had a bad habit of using Creative Commons images and not attributing them correctly so we're now vulnerable to legal action. I …
I need to bulk update 86 specific WordPress Pages every 10 minutes, with the term updating I mean the same thing as clicking the Blue Update Button on each page, and having them all update at the same time every 10 minutes. I guess I need to write a function into my theme functions.php file, and maybe trigger the function every 10 minutes with the help of the plugin WP Crontrol, or maybe using the Cron in cPanel. I'm a …
I have a scrape that generates content in JSON format and can be obtained by GET to a specific URL, the URL from which to extract information is this: https://api.webscraper.io/api/v1/scraping-job/4851593/json?api_token=aLXQWr2IbQCefgiLc1PfIjfx7GqvsBd3APVbU1pHchszzzFIFa6HFKsNmpft I would like to be able to connect this with my WP so that the content is published automatically.
Context: I am building an automated system which will grab record from a database and immediately publish them en masse as a CPT. When they are being published, I have a function in the functions.php file of a child theme that should automatically set two categories to the post, a "fixed" one called 'People', and another one based on a column (categ) which is part of the record sent with the post. My issue is that this second category (which …
I am extremely new to WordPress Development and PHP in general, and was wondering if there is a way to create a function that would automatically add some pre-determined text to the excerpt of posts with a particular category. If this is not possible, is there a way to set the excerpt to show just a particular pre-determined paragraph from the post itself which isn't the first paragraph in the actual post? For context, all posts listed under this particular …
I have imported data from a custom post type that has location data for a map plugin (Progress Map). I have about 500+ posts each with different location data. For some reason the location data isn't registered unless I save each post again. I've been looking for a way to quickly automate this but no one seems to have a solution that doesn't involve also changing data on each post which I don't want to do. I thought there would …
How I can Activate and deactivate plugin automatically? For example, I want the "Yoast Seo" plugin to be active only on Monday, Wednesday, Friday, Saturday and the other days deactivated. How can I do it? Thanks..
Can I achieve Realtime database update from spreadsheet? My requirements: I have many posts with custom fields that have certain values. I have all these values stored on a spreadsheet (GoogleSheets, Airtable, Notion - you name it!). lets say a value is changed on the spreadsheet and this value was used in 20 different posts. Is there a way that I can automate this task and update it in realtime somehow without having to manually edit every post? is this …
I need to test different datasets as well as different algorithm implementations. The current workflow looks like: Perform feature extraction from train set Train classifier on this features Feed this classifier to production code Run production code on a test set, feeding samples one by one Take results of production code and convert to the same format as test dataset Show statistics How to automate this as much as possible? I currently use a bunch of bash/python scripts. I've looked …
I'm looking to add posts to my WP website from a (self managed) database source - could be form or excel/CSV data, either internally (in WP itself) or external, i.e. from an excel sheet in Dropbox. I have a lot of data to upload and doing this in each post is very time consuming. If I could add it to a form or excel sheet and that would push to a WP database/post it would dramatically reduce my production time. …