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 for front end post
Search options not deleted
0 votes
2 answers
892 views

How to disable post-thumbnail from generation?

I am using the wp_insert_attachment() default function for uploading image from front-end. … I have been trying to unset also the creation of the post-thumbnail image. I tried to add unset( $sizes['post-thumbnail']); but no luck. …
0 votes
3 answers
7k views

Custom post type: can't enable comments by default

> But on the edit screen "allow comments" is un-checked by default which results in a "comments are closed" message on the front end. … When I check "allow comments" then comments are enabled on the front end, but I really don't want to tell my client he has to manually check that box for every new post. …
0 votes
0 answers
30 views

add_image_size() parameter four ($crop = true) is ignored: the_post_thumbnail() returns scal...

Regenerated new post thumbnails, several times. … df_theme_support'); // Custom Image Sizes add_image_size('blog-large', 860, 484, true); //true crops it // add_image_size('blog-small', 300, 200, true); //random size // load css into the website's front-end
3 votes
3 answers
14k views

detect the language a post is written in

Is there any way to evaluate the language a post/page is written in? … I am building a multilingual site and am almost pulling my hair out trying to get the front-end navigation to take the chosen language into account. …
1 vote
3 answers
207 views

Front end form with images and media_handle_upload logic?

I'm building a front-end form with image submissions. The form creates then a new post: ...process post... … $application_id = wp_insert_post($application); I then use media_handle_upload to upload image and attach them to the post: ...process file... …
0 votes
1 answer
10 views

Embeds (YouTube, Spotify) Work Live but Won't Load in Block Editor [closed]

My site went through a few hosting updates recently and everything seems to be working fine now, except for one annoying thing: When I edit a post with YouTube or Spotify embedded blocks in it, they don't … If I look at the post preview or publish it, the embeds all work fine on the front end. I've tried disabling all my plugins and that didn't fix anything. …
7 votes
6 answers
21k views

Set Featured Image Front Frontend Form

I have successfully implemented a form to submit posts from the front end of my site. ButI can't figure out how to make the image uploads work. … name="insert_post" value="post" /> <? …
0 votes

Set Featured Image Front Frontend Form

The featured image is not correctly imported at the post that just is submitted front-end. I can see the image in the media library, so I know it works till that point. … $form_fields['post-titel'] : ''; $post_content = isset($form_fields['post-bericht']) ? $form_fields['post-bericht'] : ''; $post_category_name = isset($form_fields['post-categorie']) ? …
bueltge's user avatar
  • 17.1k
0 votes
1 answer
822 views

Unable to gather Image URL from Custom Post Type's; Custom Meta Field

'; } if (isset($_POST['post-type'])) { $post_type = $_POST['post-type']; } else { echo 'Unable to get post type. … > With the success message being delivered, I then look towards how I am best outputting the images into my front-end facing code: <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <? …
2 votes
1 answer
2k views

Saving data from block editor to the database

} I've found how to use AJAX + jQuery + wp_localize_script but that method apparently is only suitable for sending data from the front end (eg form data). … The REST API is horrendously complex and all the documentation is about reading post [meta] data, not about saving data into a table. Thank you! …
0 votes
1 answer
749 views

Redirect back to origin page after using get_delete_post_link()

I need to implement frontend and backend redirection after delete specific post using get_delete_post_link(). Which hook i can use? Any advice would be appreciated. Something similar to : <? … > I need to redirect to front-end page after post deleted, similar to wp_login_url can do. …
0 votes
1 answer
1k views

Endpoint Callback Display for Custom Plugin

cp_libstaff_frontend_display() ...which displays a table of every staff member in the database to front-end users. … Should there be a custom post type created in here somewhere? A template of some sort? …
1 vote
2 answers
2k views

Show custom post type inside a custom post type

I have built a custom post type named 'articles', now I want to choose the writer details at the article post page lets say from a meta box... … I have installed the CPT-onomies plugin and now i see a meta box with a drop down that contains all the 'witers' CPT. how do i make the data appear in the article post front end? …
0 votes
1 answer
960 views

How do I display main query posts in random order using add_filter

My code with both methods as follows: FIRST METHOD: add_filter( 'the_content', 'thefunction',10 ,1 ); function thefunction($content) { $args = array( 'post_type' => 'post', 'orderby' … is_admin() && $query->is_main_query() ) { // Not a query for an admin page. // It's the main query for a front end page of your site. // Let's change the query using arguments …
0 votes
2 answers
2k views

Sending post data over REST API, how to parse shortcodes in post_content?

I find that if I var_dump my REST API's post data function on the front end of the WordPress site itself (blank theme, theme is literally 'var_dump this function'), the shortcodes for VC do get processed … If I place the following in my theme: var_dump( return_page_single( $request ) ); I get the fully processed post content. …

1
2 3 4 5
33
15 30 50 per page