Articles of list

Hiding by default specific post status on backend list?

I created various custom post status options (like default ones: “published”, “draft” and so on) and one of them is “project closed”. I need to hide/exclude by default from post list in the backend the posts set under “project closed” post status. is there a way to this? thank you so much!

List all posts, pages and custom post types in admin

I want to create a drop down in my WordPress admin containing all posts, pages and custom post types. The return value should be a link to that page or an ID of the page. Is there something build in for this, or is there an easy way to do it? Thanks in forward.

Display a list of all post from the Author in the author's page (author.php) in alphebetical order

wordpress noob here. I’m trying to get a php code that will list all of the author‘s post in the author’s page, or in author.php file, in alphabetical order. If anyone here knows how, please help.

Get a list of ACF Repeater-Fields as array

I run a Site for a concert & music club. Events are set within a custom post type called “events”. In this i set the date, the name of the event and all other infos about that event. In this custom post type, I have a ACF (advanced custom fields) Repeater called “artists”, with the […]

Pagination in html table is not working

I have a custom page template and I found a a PHP snippet that create a pagination in html table. But the code is not working properly. UPDATE: I change the code. But still the code is not working correctly, when I click on the 2nd page, the 2nd page displayed a blank page only. […]

Output custom text field as unordered list

I am quite new to php. I am using advanced custom fields and have a custom field with the name tags. Users are inputting content such as: Tag 1, Tag 2, Tag 3 I would like parse this output and show it as unordered list: Tag 1 Tag 2 Tag 3 The following code gives […]

Categories list loop – add separator every year

I have a code which shows categories list with images. Im using plugin to attach image to category. Working code is: <?php $args=array( ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ) ?> <?php foreach (get_categories( $args ) as $cat) : ?> <h3><a href=”<?php echo get_category_link($cat->term_id); ?>”><?php echo $cat->cat_name; ?></a></h3> <a href=”<?php echo get_category_link($cat->term_id); ?>”><img src=”<?php echo […]

How do i wrap woocomerce attribute in list?

I want to wrap a particular woocomerce attribute value in a list. e.g. include is a attribute i want to wrap it value in a list. i have attached a image for your reference

Listing all sub-pages?

I’m wondering how to write a list of sub-pages of actually visited page. So I have 2 pages and 3 sub-pages for each: Colors [page] – Red [child of Colors – subpage] – Blue [child of Colors – subpage] – Green [child of Colors – subpage] Numbers [page] – One [child of Numbers – subpage] […]

Adding category dropdown list to theme options page

I am tyring to add a category drop down list to my theme options page. I am try it this way: <p> Select a style from the list <?php $amp_categories_obj = get_categories(‘hide_empty=0′); $amp_categories = array(); foreach ($amp_categories_obj as $amp_cat) { $amp_categories[$amp_cat->cat_ID] = $amp_cat->category_nicename; } $categories_tmp = array_unshift($amp_categories, “Select a category:”); echo “<select name=’amp_options[amp_cat]’>”; foreach ($amp_categories_obj […]