• Resolved milestone

    (@milestone)


    Until Ed can find the time to fix the widget properly, I’ve done a quick hack with the help of another plugin that does the job in the meantime.

    First I added a more advanced search widget plugin called, well, ‘Advanced Search Widget’ and set it to search only page titles. Very useful anyway. Put in one of my fave surnames and copied the resultant URL. That’s the type of link we want for each of our top surnames.

    Opened up surname_widget.php and found line 75:
    echo '<div style="margin-left:10px;">' . $rows[$idx]['surname'] . ' (' . $rows[$idx]['cnt'] . ')</div>';

    Replaced it with this:
    echo '<div style="margin-left:10px;"><a href="https://genesproject.com/?s=' . $rows[$idx]['surname'] . '&posttype=page&widget=advanced-search-widget-3">' . $rows[$idx]['surname'] . '</a> (' . $rows[$idx]['cnt'] . ')</div>';

    Please change my domain to yours when trying this, folks ?? You can see it in action at my site https://genesproject.com and you can drop me a form message from there if you get stuck.

    Hope it helps somebody until a permanent solution can be found.

    PS Anybody got any ideas on styling the output to look a bit closer to the ‘Person Index’ page?

    https://www.ads-software.com/plugins/rootspersona/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A clickable surname widget! Well, sort of…’ is closed to new replies.