Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 115005

Custom Post Types extend WordPress to support additional content.

1 vote
Accepted

Is there a way to get a file URL from the relationship ACF field?

$posts = get_sub_field('download_existing'); $existing_link_url = ''; foreach ((array)$posts as $link_posts) { $existing_link_url = get_field("your_field",$link_posts->ID); } T …
Drupalizeme's user avatar
  • 1,626
0 votes

update flamingo_inbound post type after insert

You can use the post type within the action name and you gain the removing of an unnecessary check of the post type. More on this wp_transition_post_status For instance: When publishing a post fo …
Drupalizeme's user avatar
  • 1,626
1 vote
0 answers
18 views

Modification of how the data is controlled/showed and stored

Before you read: The ticket is just an example we don’t want an actual plugin for that. It is just to visualize the issue. Ticket can be a support ticket, invoice, sale etc. Just like wp_post has “cu …
Drupalizeme's user avatar
  • 1,626
1 vote
Accepted

Replace dynamically content in a custom database table when a custom post is created

This is something that creates one common question for all SW engineers. How you can do this “guide the user to select” and also “provide the capability” so the user can add their own data. Well, ther …
Drupalizeme's user avatar
  • 1,626
1 vote

Capabilities not working with custom post type

You should map CPT capabilities with the capability_type This way can WP understand what you want to do. Try edit_$cap_type (where $cap_type = alert)
Drupalizeme's user avatar
  • 1,626
2 votes
Accepted

Group custom posts by custom taxonomy names

You should write it as the following: $term_ids = array_map( function( $t ) { return $t->term_id ; }, $terms ); Also in the code, you have the get_terms where you directly write the taxonomy name. …
Drupalizeme's user avatar
  • 1,626
0 votes
0 answers
25 views

Front End users account with lots of user Roles (not Woocommerce)

Working on a heavily customized WordPress site I came up with the need for front end customer account. (this is not a WOO site). We like the logic kept in the main custom plugin and only the front and …
Drupalizeme's user avatar
  • 1,626
0 votes

get_permalink() of page the enclosing page not posts

Try this: $obj = get_queried_object(); $link = get_term_link($obj); Now you can use it as you want.
Drupalizeme's user avatar
  • 1,626
0 votes
Accepted

Update postmeta Parent when post_status child change

From WP 3.7 you have the option to hook to the save_post hook directly for you post_type. For example: function update_post_parent_status_on_complete( $post_id ) { if(!isset($post)) $post …
Drupalizeme's user avatar
  • 1,626