Devin Price
Forum Replies Created
-
Forum: Hacks
In reply to: publish_future_post not runningRan into some corners of WordPress I’ve never seen before tracking down a solution for this one.
There’s a little-known filter called “pre_update_option” that runs before any specific option is updated: pre_update_option.
Since you’re main goal is just to always have one sticky post published at time, I think it make sense to run a filter whenever that value is about to change.
I didn’t thoroughly test this, but try this approach:
function custom_sticky_init() { add_filter( 'pre_update_option_sticky_posts', 'custom_update_sticky_posts', 10, 2 ); } add_action( 'init', 'custom_sticky_init' ); function custom_update_sticky_posts( $new_value = array() , $old_value = array() ) { if ( ! is_array( $old_value ) ) { return $new_value; } $value = array_diff( $new_value, $old_value ); return $value; }Thanks, I opened a ticket for this:
https://github.com/devinsays/portfolio-press/issues/99Forum: Themes and Templates
In reply to: [Portfolio Press] Image insert on Page/Post in Portfolio PressOkay. Pages don’t show the featured images by default. So, you’ll just need to insert it (size “large”) into the page.
Forum: Themes and Templates
In reply to: [Portfolio Press] Image insert on Page/Post in Portfolio PressI looked at your home page and don’t see any posts with an icon (rather than the image). Could you direct me to a post where that is happening?
Forum: Themes and Templates
In reply to: [Portfolio Press] Image insert on Page/Post in Portfolio PressHave you set the featured image? (Right side of post edit screen, under post formats)
Forum: Themes and Templates
In reply to: [Portfolio Press] Featured Images in Category viewAll the posts in that category would either need to be an “image” format or “gallery” format in order for them to display in the grid layout.
That can be chosen in the post editor on the right side of the screen.
Forum: Themes and Templates
In reply to: [Portfolio Press] Portfolio Press theme not responsive on mobileIt doesn’t look like you posted a link.
The small screen version does look different than the desktop version. Everything should collapse into a single column, and the menu will display as a button until tapped.
Are you using the latest version of the theme? Is there a live link that I could look at somewhere?
Forum: Themes and Templates
In reply to: [Portfolio Press] Navigation Next / Previous not showing upIt doesn’t currently support them because I had a lot of questions about removing them or changing how they function (staying within category, staying within image posts, etc).
However, I’m also getting a lot questions about putting them back. See: https://github.com/devinsays/portfolio-press/issues/98.
I’ll see about addressing this in a future release. If you need these right away, you can use the Portfolio+ version which does include support for them.
Forum: Plugins
In reply to: [Options Framework] I want to let my theme use all of Google webfonts.Here’s a different project of mine that has more font utilities:
https://github.com/devinsays/customizer-library/blob/master/extensions/fonts.phpAll the code for returning arrays of fonts should also work for Options Framework.
Forum: Plugins
In reply to: [Options Framework] how can i use Options Framework in wordpress loopIf you want to query for the selected page:
$args = array( 'posts_per_page' => 1, 'post_type' => 'page', 'post__in' => array( of_get_option('featuredbox1') ), 'orderby' => 'post__in' ); $query = new WP_Query( $args );Forum: Plugins
In reply to: [Options Framework] can i use Options Framework in my project ?Using the customizer is generally encouraged for ww.wp.xz.cn.
But there is no restriction against using the bundled version of the Options Framework for ww.wp.xz.cn. cc me on the ticket if you need help getting it through theme review.
Forum: Plugins
In reply to: [Options Framework] Undefined variable: wp_editor_settingsGlad you were able to resolve.
Forum: Plugins
In reply to: [Options Framework] how to use this pluginThere is some documentation for it here:
http://wptheming.com/options-framework-plugin/Forum: Plugins
In reply to: [Options Framework] Throwing a fatal error on activationGlad you were able to get it working again, that was indeed the issue. If a theme bundles it, you don’t need to have the plugin version active. I also believe Organic Themes has moved to the customizer for theme options, so maybe try and get the latest version of the theme.