Sort custom-posts in archive.php via meta-key?
this question is strongly related to this question where I already got a working answer.
this question is strongly related to this question where I already got a working answer.
how can I create a widget out of a php code? It’s just a disqus code that I would like to place in the sidebar. I could just paste the code in the widget section (my tag), but then I would not be able to change it’s order with the other wigets. This is why I want to convert this code into a widget.
This is really a two stage question, for not very relevant context you can look at this question – How to customize a shortcode using the customizer. In brief I got a widget and a shortcode that implement the same functionality and that is customized in the customizer by adapting the form generated for the widget into a customizer section.
I just did an action on the query using pre_get_posts and it didn’t work. When I removed the $query->is_main_query() it did work.
When I create a new page within WordPress, I have the option of specifying which template to use from my theme (from a dropdown list on the right-hand side of the interface).
I have two custom post type. Then I need to use title_save_pre to post title prior to saving it in the database. I need to use this filter just for one custom post type.
I used iThemes Security (formerly Better WP Security) hide back-end functionality to change the login url to /signin however clicking the lost password link /wp-login.php?action=lostpassword now generate a 404
I’m looking for a way to check that a post has a minimum word count before allowing it to be sent for review (added to the pending post status).
I’ve got these custom post types (CPT) and meta boxes:
I know I can set a static page as the homepage but is it possible to set a single custom post as the site front page?