Where do I add my own configuration needs and how do I access them?
Where do I add my own configuration needs and how do I access them?
Where do I add my own configuration needs and how do I access them?
Run Jquery Script after delete post in front end
Would you mind if I just leave bread crumbs so you can solve this pazzle ? add filter ‘query’ hook $wpdb->prefix & local wpdb prefix value somewhere in *_options table remove_filter show values Once one wpdb instance declared… you can reach any table in it (beware I said table in one DB). But you can’t … Read more
Use add_action( ‘save_post’, ‘shortend’, 999); and put this in your function as first. if ( ‘project’ != $_POST[‘post_type’] ) return $post_id; If this doesn’t work then you should echo $_POST; and see if kaart_verkoop is part of the array.
Why do my offline development site and online live site behave differently?
There’s at least 3 options to choose from: You can use the single CPT file name which you can grab from the source code in the body classes or a custom class which can be added directly to the single-cpt.php file or using a functions file with conditional tag. .single-cpt { your declarations } Or … Read more
If you’re comfortable writing plugins, you can use “meta boxes” to add custom meta fields to the post form. Please have a look at the add_meta_box examples to see what I mean. The general idea is that you add a meta box containing a field, and save it to the meta table when the form … Read more
A hacky way to do it is to do a string replace on the tmpl-attachment-details template: // See wp_print_media_templates() in “wp-includes/media-template.php” function wpse157297_print_media_templates() { $my_link = ‘<a class=”my_link-attachment” href=”https://wordpress.stackexchange.com/questions/157297/my_link.php?url={{ data.url }}” target=”_blank”>’ . __( ‘My Link’ ) . ‘</a>’; $nonimage=”<# if ( “image” !== data.type && ! data.uploading ) { #>” . $my_link . ‘<# … Read more
Ok guys found the solution myself (5 days later, oof) added below to help someone else in the future… foreach((get_the_category( $related_post->ID )) as $category) { $output .= “<a class=\”$category->slug\” href=\””.get_permalink( $related_post->ID ).”\” title=\”” . $category->cat_name . “\”>” . $category->cat_name . “</a>”; } Basically the old link above looked like this… $output .= “<a href=\””.get_permalink( $related_post->ID … Read more
How to show the posts list into a static page? Problems to use the loop into a static page