Change gravity forms confirmation redirect query string to include entry id [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic. Closed 7 years ago. Improve this question I need to … Read more

Append values to query string

I have set of URL’s similar to the ones below in a list http://somesite.com/backup/lol.php?id=1&server=4&location=us http://somesite.com/news.php?article=1&lang=en I have managed to get the query strings using the following code: myurl = longurl.Split(‘?’); NameValueCollection qs = HttpUtility.ParseQueryString(myurl [1]); foreach (string lol in qs) { // results will return } But it only returns the parameters like id, server, … Read more

Count number of published posts by type

I have this code, but it shows the total number of posts published by post type ‘code’. <?php $count_posts = wp_count_posts(‘code’)->publish; echo $count_posts; ?> I have 2 post types: ‘code’ and ‘shop’. Post type code is “a child” for post type ‘shop’. Therefore I need to show the post count for the “child” post type … Read more

Meta box io oembed returns list not array

i have created a meta box oembed with clone: function media( $meta_boxes ) { $prefix = ”; $meta_boxes[] = array( ‘id’ => ‘media_1’, ‘title’ => esc_html__( ‘Media’, ‘media’ ), ‘post_types’ => array( ‘post’,’personal_projects’ ), ‘context’ => ‘advanced’, ‘priority’ => ‘high’, ‘autosave’ => true, ‘fields’ => array( array( ‘id’ => $prefix . ‘image_advanced_2’, ‘type’ => ‘image_advanced’, … Read more

Add query string to url and display it as normal url part /folder/

I have a query string added to some urls which isn’t pretty: ?city=Amsterdam So i’d like to structure the url like: https://example.com/realpage1/realpage2/amsterdam/ or https://example.com/realpage1/amsterdam/ depending on the type of content. And then get the variable with some htaccess like: RewriteRule ^/(.*)/(.*)/(.*)$ ?city=$3 The page /aaa/bbb/ does exits. But the above gives a 404. How can … Read more