How can I automatically add random description to posts with empty content posted to WordPress?

Tags: , ,


I would like to automate the process of adding descriptions for articles published on my site. I would like to automatically insert a random description from a list of pre-edited (Advanced Custom …

Can’t get a list of streets to create a card [closed]

Tags: , , ,


public function create() { $streets = street::get(); return view(‘dashboard.house.created’); } public function store(Request $request) { $this->validate($request, [ …

uploading image not working in codeigniter 3

Tags: , , ,


i’m new learning codeigniter 3, i have problem that i can’t upload image in edit method. i’m really stuck, i already figure it out from the internet and documentation but there is no answer and my …

Tags: arrays mysql php

Add the results from a PHP array into a SQL Select for each Result to be procesed

Tags: , ,


I am a newbie so I want to know if what I am asking is possible. I have a SQl Select query that returns a While loop and I convert the results (peoples names)to a php Array. In a another SQL Query …

issue while deleting row in database by php

Tags: , ,


Hello I have a table in my database called files and I want to delete a row by its id but whenever I run the code I get the response “Successfully Deleted” but it does not delete the row. …

How to send an array of categories and posts in wordpress functions.php?

Tags: , ,


I make a request to my custom endpoint function in functions.php : add_action( ‘rest_api_init’, function () { register_rest_route( ‘wp/v2’, ‘/homepage/’, array( ‘methods’ => ‘GET’, …

Include some javascript code in HEAD on WooCommerce Order received

Tags: , , , ,


Goal: I need to include an event snippet for specific tracking on the Woocommerce Order Confirmation page (the page immediately following a purchase). I must pass order_id, currency and total to the …

Use more placeholders in WHERE statement after IN statement with arrays

Tags: , ,


I need more placeholders to be added to the following query. Is this possible? I have no idea where to begin and I can not find any options on the Internet. The query now: $in2 = str_repeat(‘?,’, …

How to use PHP glob() with minimum file date (filemtime)?

Tags: , , ,


I want to get a range of files with PHP glob function, but no older than a month (or other specified date range). My current code: $datetime_min = new DateTime(‘today – 4 weeks’); $product_files = …

Tags: php

how to replace specified characters with space in a text file with php

Tags:


text files name is 32viestit21.txt <?php if(isset($_POST['send'])) { if (isset($_SESSION['username'])) $fp = fopen('32viestit21.txt', 'a',1); $message=$_POST['message']; // code here …