Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Channel Catalog


Channel Description:

WordPress › Support

older | 1 | .... | 365 | 366 | (Page 367) | 368 | 369 | .... | 413 | newer

    0 0

    I have a site that uses a few cron jobs to take care of regular tasks. These cron jobs need to access data that is stored in posts that are only accessible by certain users. An addon, like WP Force Login, is used to keep unregistered users out.

    This requires the cron to be run as a logged in user to succeed. How can I accomplish this? Or, perhaps there is a more elegant solution I am overlooking?

    Thank you in advance!


    0 0

    What is the cleanest way to change default values for fields in the admin "Add New User" screen?

    We want to make "Send User Notification" default to unchecked.

    We also want to reorder some fields.


    0 0

    We have an external site (Wodify) publishing a blog post to our wordpress site via XML-RPC.php. Unfortunately I don't like the layout/content of the posts so I would like to alter it. Is it possible to intercept the post in the XML-RPC or is it possible to chain another call after submission including information that would allow me to alter it?

    I'm extremely new to PHP (Java Developer) so any code snippets or in depth descriptions of what I'm dealing with would be appreciated.

    Thanks
    Andy


    0 0

    Hello everybody,

    I am an administrator of website with embedded videos.
    I want to do this:
    When user clicks on embedded video, I want to be redirected to a website where video is embedded from in a new tab or window.

    Can anyone help me?


    0 0

    Hi everyone, on my theme users can create stores to sell product ect... so for example if Alex create an account the URL for his store will be http://www.mywebsite/store/alex

    so what i'm trying to accomplish is to add a link on the top menu bar like http://www.mywebsite/store and when the user click it they well be redirected to there store page http://www.mywebsite/store/alex

    i'm not sure but i think the $current_user fonction has something to do with solving my problem

    thanks for any kind of help


    0 0

    I have been getting really inconsistent behavior with the use of dbdelta recently (likely since 4.4.2 upgrade). The following (seemingly a bug) has been driving me crazy.

    $table_name = $wpdb->prefix . "rbelegvote";
          $sql = "CREATE TABLE " . $table_name . " (
          id mediumint(9) NOT NULL AUTO_INCREMENT,
          email varchar(120) NOT NULL,
          twitid varchar(120) NOT NULL,
          PRIMARY KEY  (id),
          KEY (email)
          );";
          require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
          dbDelta($sql);

    works, however putting an underscore in the table name so it becomes:

    $table_name = $wpdb->prefix . "rbe_legvote";
          $sql = "CREATE TABLE " . $table_name . " (
          id mediumint(9) NOT NULL AUTO_INCREMENT,
          email varchar(120) NOT NULL,
          twitid varchar(120) NOT NULL,
          PRIMARY KEY  (id),
          KEY (email)
          );";
          require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
          dbDelta($sql);

    does not work. I have tried this like 10 times to make sure I wasn't doing something stupid. Can anyone out there tell my why the first one would work and the second one wouldn't? The second one used to work and no longer does, and I think I obeyed all the strange spacing requirements for db delta. I am suspecting this has to do with the wordpress update but not sure. Thank you in advance


    0 0

    I am currently developing a plugin that manages contests. I have a CPT called contest and have already managed to create the page that creates contests. I just have a couple of questions about how I should structure the rest of the plugin.

    I want to make a contest entry feature that would let registered users submit entries to particular contests. I need to be able to let other users vote for entries they think are the best. How should I store the entries? Should they be a CPT and the entry's parent post would be the contest? Or could I use comments as entries? I would then store votes in the post meta or comment meta with a key of voter_id and a value of the userID.

    Which do you guys think would be the best method of storing entries and their votes? Keep in mind, it should be easy to query contests by number of entries, and also to determine who the winner is by the number of votes.


    0 0

    How to fully disable 'Edit Image' function ?
    or only available for admin .

    Thank You
    Jackie


    0 0

    This is the current code. The counter goes up to 3 then resets to 1, and the article is given the appropriate class. Works fabulously.

    <?php $counter = 0; ?>
    <?php
    if(have_posts()) : while(have_posts()) : the_post();
     <?php $counter++;  ?>
     <article class="th<?php echo $counter; ?>">
    	<?php // reset counter if 3 has been reached
    		if ($counter==3){
    		$counter=0;
    		} ?>
        <!--stuff-->
    </article>
    <?php } endwhile; endif;
    ?>
    <article class="th1">
        <!--stuff for an extra article-->
    </article>

    Now I have to pull in one extra article. it isn't part of the loop because it's from a different area. Right now it has a class of 1 all the time but what should happen is that it should flow with the rest. It doesn't matter if it's first or last. So I think the problem is either:

    - the first loop starts with 2, goes to 3, then goes back to 1, 2, 3, until the posts are finished.

    OR

    - loop goes 1, 2, 3 until all posts are finished. Then figure what was the last number, and add one to this article outside the loop.

    Is either of these possible? Is there an easier way?


    0 0

    I modified this function for showing events on a page but i dont know how to sort it by date or title?

    Can someone help me?

    <?php // TICKERA ALL EVENTS
    add_shortcode( 'tc_all_events', 'tc_all_events' );
    function tc_all_events() {
    $wp_events_search = new TC_Events_Search( '', '', '', 'publish' );
    foreach ( $wp_events_search->get_results() as $event ) {
    // echo '<div class="smticketcalendar"><h3>' . $event->post_title . '</h3>';
    echo '<div class="smtickets"><div class="smticketstitle"><a id="SM-'.$event->ID.'"  href="'.$event->guid.'">'.$event->post_title.'</div></a>';
    echo '<div class="smticketsdate">' . mysql2date('l, \d\e\r d. F Y \u\m H:i \U\h\r', $event->event_date_time ). '</div>';
    echo '<div class="smticketslocation">' . $event->event_location . '</div>';
    echo '<div class="smticketshide" tabindex="0"><div class="smticketstickets">TICKETS</div>' . do_shortcode( '[tc_event id="' . $event->ID . '"]' ).'</div></div>';
    } }
    ?>

    0 0

    Everywhere on the net i was searching, no one is mentioning which one goes first and is it possible to use one hook theme activation for both roles and capabilities. They both are saved in database and as i see although they are linked with each other, they are not linked in database as foreign keys, they are even in same option saved.

    So my question is as both codex guides references that roles and capabilities should be added or removed on theme/plugin activation, they use different approach.

    In add capabilities codex page suggest to run on theme page and check if it's activated, otherwise remove capability.

    add_action( 'load-themes.php', 'add_theme_caps' );

    And in roles codex page they suggest register activation hook, which is basically used for plugin activations

    register_activation_hook( __FILE__, 'add_roles_on_plugin_activation' );

    So which one would be correct? can i use one hook on theme activation to add both new roles and new capabilities. My point is that i want to add a few roles

    Confirmed poster
    Unconfirmed poster
    Blocked poster

    And a few capabilities hooked to those roles like

    create_new_listing
    edit_own_listing
    delete_own_listing
    send_private_message
    edit_own_profile

    On top of that "listings" are custom post type so should i also add capabilities to that custom post type too?

    register_post_type(
    'listings',
    array(
       'public' => true,
       'capability_type' => 'listings',
       'capabilities' => array(
       'publish_posts' => 'create_new_listing',
       'edit_posts' => 'edit_own_listings',
       'edit_others_posts' => 'edit_others_listing',
       'read_private_posts' => 'read_private_listing',
       'edit_post' => 'edit_listing',
       'delete_post' => 'delete_listing',
       'read_post' => 'read_listing',
    ),
    )
    );

    So which order goes on activation and adding custom roles and capabilities?


    0 0

    Hello,

    I recently updated my plugin
    https://wordpress.org/plugins/buddypress-profile-shortcodes/
    http://plugins.svn.wordpress.org/buddypress-profile-shortcodes/

    When version 1.0 is installed it doesn't detect versions 1.1 as being available. Is there something I'm missing when adding it to the svn? I can manually download it and install it, wordprss.org seems to show that it is version 1.1, but the automatic update process doesn't notice it.


    0 0

    Hi.
    Can somebody please help me.
    I would like to do the following changes in my navigation bar:
    1) Change the text color
    2) Center my navigation bar
    3) Freeze the navigation bar.

    Thank you in advance. :)


    0 0

    I have two different search methods on my site. My theme (enfold) has a built-in ajax search that's pretty good). I also use the plugin, sabai directory, which has it's own directory search. unfortunately, sabai directory doesn't use custom taxonomies/post types in any normal way, so no search plugins can find any of the pages sabai directory creates.

    Is it possible, to grab the search keywords from the theme search and show results from both the theme search and the directory search on the same page?

    As a side note, I've tried using plugins like relevanssi and wpsearch to improve search, but they can't find the sabai directory pages/listings either.


    0 0

    Hello. Please tell me, how can i output subtemplate in the main theme, in the center content, where posts, etc usually outputed.

    I don't want to use shortcodes for this. What are other options? Thank you.


    0 0

    Hi WP Gurus!

    I'm wondering if there is a code for functions.php that can increase upload size for files once is required by user session. I mean that I need it only when the user requests to upload a file, not in the php.ini or htaccess as general rule (for security issues).

    Example:
    User must upload 1 file of 250 MB or 5 files of 50 MB without having time outs.

    My .htaccess limits are:
    php_value upload_max_filesize 16M
    php_value post_max_size 16M
    php_value max_execution_time 300
    php_value max_input_time 300

    I need some code in functions.php (I'm using Genesis - Child theme) that can increase temporarily this limit on session start of each upload request.

    Thank you for you time!

    Cheers!
    Daniel


    0 0

    had someone add them selves as an administrator. How can I prevent this?


    0 0

    We write Rover IDX, a plugin to display real estate listings on Wordpress sites. Agents all across the USA use the plugin, but we regularly run into a problem with curly quotes / smart quotes.

    If the user (often a real estate agent) is copying a Rover shortcode to their page, that shortcode example may have parameters - [rover_idx_full_page items_per_page="24"]. If the website or email they copied it from has curly quotes 'on', the agent will paste those curly quotes into the page. Most people do not notice the curly quote (the difference is subtle), and trying to explain that they need to be corrected does not go so well. These 'texturized' quotes really mess up the parsing of shortcode parameters.

    We've just implemented the no_texturize_shortcodes filter - but I *think* this filter will avoid converting a double quote to a curly quote (on the page save). But if the agent pastes a curly quote - this filter does not correct it. Is my understanding correct?

    Also - the shortcode parameters are parsed by WP, and sent to the plugin. So they are already messed up. Is there an elegant way to ensure the correct parsing of shortcode $atts that may have been polluted with curly quotes?

    Thank you
    Steve


    0 0

    OBAT ABORSI – JUAL OBAT ABORSI – JUAL OBAT ABORSI AMPUH
    APOTIK: Kami Jual Obat aborsi PEMESANAN VIA SMS : 082226453342 Pin: 29CF93A7 – Jual Obat Aborsi Aman – Obat Penggugur kandungan | Obat Penggugur Janin – Obat Telat Datang Bulan. Dengan harga yang bisa anda pilih sesuai usia kandungan anda. Obat yang kami jual ampuh untuk menunda kehamilan atau proses aborsi untuk usia kandungan 1 – 6 bulan.
    Setelah Minum Obat aborsi Selama 4 – 5 Jam Dijamin 100% Langsung Gugur Dan Tuntas,

    wewewewe

    Apa itu Aborsi ?
    “Abortion Adalah dengan membendung hormon yang di perlukan untuk mempertahankan kehamilan yaitu hormon progesterone, karena hormon ini di bendung, maka jalur kehamilan mulai membuka dan leher rahim menjadi melunak, sehingga mulai mengeluarkan darah yang merupakan tanda bahwa obat telah bekerja (maksimal 1 jam sejak obat diminum) darah inilah yang kemudian menjadi pertanda bahwa pasien telah mengalami menstruasinya, sehingga secara otomatis kandungan di dalamnya telah hilang dengan sendirinya 100% berhasil dan aman…
    INI FOTO OBAT ASLI USIA 1 – 6 BULAN
    KAMI MEMBERI GARANSI 100%.
    jangan terima obat yang sudah ke buka tabletnya, karena yang asli masih bertablet utuh seperti foto di atas.
    PENJELASAN OBAT ABORSI USIA 1 BULAN
    Pada usia kandungan ini, pasien tidak akan merasakan sakit, dikarenakan janin belum terbentuk.
    Cara kerja obat aborsi :
    Cara kerjanya Adalah dengan membendung hormon diperlukan untuk mempertahankan kehamilan yaitu hormon progesterone. Maka jalur kehamilan ini mulai membuka dan leher rahim menjadi melunak sehingga mulai mengeluarkan darah merupakan tanda bahwa obat telah bekerja (maksimal 3 jam sejak obat diminum). Darah inilah kemudian menjadi pertanda bahwa pasien telah mengalami menstruasinya, sehingga secara otomatis kandungan didalamnya telah hilang dengan sendirinya. 100% berhasil aman dan
    Tanpa efek samping.
    PENJELASAN OBAT ABORSI USIA 2 BULAN
    Pada usia kandungan ini, pasien akan adanya rasa sedikit nyeri pada saat darah keluar itu merupakan pertanda menstruasi. Hal ini dikarenakan pada usia kandungan 2 bulan, janin sudah mulai terbentuk walaupun hanya sebesar bola tenis.
    Cara kerja obat aborsi :
    Secara umum sama dengan cara kerja “OBAT ABORSI AMAN dosis 1 bulan”, hanya bedanya selain membendung hormon progesterone, juga mengisolasi janin sehingga akan terbelah menjadi kecil-kecil sehingga nantinya akan mudah untuk dikeluarkan. Selain itu, ” OBAT ABORSI ALAMI dosis 2 bulan ” juga akan membersihkan rahim dari sisa-sisa janin mungkin ada sehingga rahim akan menjadi bersih kembali seperti semula,artinya tetap dapat mengandung dan melahirkan secara normal untuk selanjutnya. Menstruasi akan terjadi maksimal 24 jam sejak OBAT ABORSI diminum.
    PENJELASAN OBAT ABORSI USIA 3 BULAN
    Pada usia kandungan ini, pasien akan merasakan sakit yang sedikit tidak berlebihan(sekitar 1 jam), namun hanya akan terjadi pada saat darah keluar merupakan pertanda menstruasi. Hal ini dikarenakan pada usia kandungan 3 bulan, janin sudah terbentuk sebesar kepalan tangan orang dewasa.
    Cara kerja obat aborsi :
    OBAT ABORSI Tuntas dosis 3 bulan secara umum sama dengan cara kerja “DOSIS OBAT ABORSI 2 bulan”, hanya bedanya selain mengisolasi janin juga menghancurkan janin dengan formula methotrexate dikandung didalamnya. Formula methotrexate ini sangat ampuh untuk menghancurkan janin menjadi serpihan-serpihan kecil akan sangat berguna pada saat dikeluarkan nanti. ” OBAT ABORSI dosis 3 bulan” juga membersihkan rahim dari sisa-sisa janin mungkin ada / tersisa sehingga nantinya tetap dapat mengandung dan melahirkan secara normal. Menstruasi akan terjadi maksimal 24 jam sejak OBAT ABORSI diminum.
    UNTUK PENJELASAN PADA USIA KANDUNGAN 4 – 6 BULAN, MENGENAI REAKSI & CARA KERJA OBAT ABORSI SILAHKAN HUBUNGI KAMI ( Contact Hotline )
    INI BENTUK TABLET CYTOTEC YANG ASLI

    TABLET CYTOTEC


    0 0

    Below my single post is a previous_post_link/next_post_link navigation. I have a post (ID=1) I want to exclude from that navigation. I managed to exclude the post everywhere else (catalog, search, sitemap) but this keeps me awake at night.

    I already tried a custom query, with 'post__not_in' => array(1)) but to no avail.
    Then I tried the plugin WP HIde Post, and it works fine, except for hiding the post in that navigation.

    Any ideas would be more than welcome!


older | 1 | .... | 365 | 366 | (Page 367) | 368 | 369 | .... | 413 | newer