neo yang

Copywriter, webmaster, product manager, architect, independent developer.

What is AIGC: Understand AIGC in one article

AIGC refers to AI-generated content, which involves artificial intelligence generating text, pictures, videos, etc. based on prompts. Originated in 2022, the large language model is its foundation, interacting with AI agents through prompt words, context and AI. AIGC has begun to change the content industry and accelerate production efficiency. It is currently used in many directions such as chat robots and content generation, and has given rise to an industrial ecosystem with large model capabilities as its core.

Time:2023/11/06

Record it, wordpress, get the page ID

I have always used

global $post; $id=$post->ID;

I just found out today that there is a problem.

If you add a shortcode to the page, and the shortcode outputs a list (such as a list of articles in a certain category), then this method cannot get the page ID.

That is to say, if there is a loop in the page, then the above method cannot obtain the page ID.

List several methods to obtain the page ID:

1.global

Affected by circulation.

global $post; $id=$post->ID;

2,get_the_ID()

Affected by circulation.

$postid = get_the_ID(); echo $postid;

 

3.get_queried_object_id()

Not affected by circulation. recommend.

$current_id = get_queried_object_id(); echo $current_id;

4.get_queried_object()

Not affected by circulation.

$object = get_queried_object(); $id = $object -> ID; echo $id;
tags:

Share several video-generated AI applications

Currently, in the AIGC area, there are not many Generative AI applications for video generation. The best one should be considered runway, but runway […]

Review of virtual airline business lines - supply chain growth and structure

1. The overall situation of air tickets 1. Business ecology Since the great development of the Internet and OTA, the air ticket business has gradually formed two business forms: platform and supply chain. […]

Time:2023/09/02

form engine iteration today

Today’s iteration of form engine:

Support multiple forms on one page;

Supports application in veiws engine, so that various actions can be added to the list rendered by veiws engine.

The view layer and control layer of the form engine are separated.

Add a field for a drop-down selection button.

 

Since the form engine and views engine were separated from the low-code platform and some reconstruction was done, this iteration has completely made their capabilities beyond the previous version.

Time:2023/08/31

For the record, setting cookies in WordPress is special.

I've been stuck on this little problem for a day.

Setting cookies in WordPress is special.It should be written in the theme's functions file and loaded into the init hook.

function custom_set_cookie() { setcookie( 'key', 'value', time() + 3600 * 24, COOKIEPATH, COOKIE_DOMAIN ); } add_action( 'init', 'custom_set_cookie' );
tags:

Dismantle the low-code platform - generative is the direction of low-code

Friends who are familiar with me know that during the epidemic, I coded myself and built a BAAS (back-end as a service cloud computing platform) and a low-code platform. The reason […]

Why do people who care about money often fail to make big money? ——Read "Why Greatness Cannot Be Planned"

  Why do people who care about money often fail to make big money? Since this year, GPT has been very popular. There is also a book related to artificial intelligence, which also has […]

The first wave of AIGC entrepreneurial teams have been disbanded. Is there still a future for AIGC?

Today, a friend shared an article. Recently, Jasper, the first unicorn company to do AIGC, has returned to zero. Jasper, based on GPT, is […]

The direction of generative AI—a breakthrough in robots

  AI is a big opportunity. Therefore, everyone is exploring, whether they know what to do or what they don’t know what to do. At present, the direction of exploration is mainly in […]


copyright © www.lyustu.com all rights reserved.
Theme: TheMoon V3.0. Author:neo yang